X402 Monetize
简介
X402 Monetize
原始描述
Creates paid API endpoints using the x402 micropayment protocol. Wraps existing Zo skills and tools behind per-request payment walls. Each call costs $0.001–...
通过你的 Agent 添加
安装目录:x402-monetize/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: x402-monetize version: 1.0.14 description: | Creates paid API endpoints using the x402 micropayment protocol. Wraps existing Zo skills and tools behind per-request payment walls. Each call costs $0.001–$0.10, settled on-chain. No crypto custody risk — the x402 facilitator handles payment. compatibility: Zo Computer, Node.js, @x402/core, @x402/express metadata: author: ssyopros.zo.computer category: monetization tags: x402, micropayments, paid-api, passive-# x402-monetize
Create paid API endpoints that earn micropayments every time they're called.
What This Does
- Wrap any Python script or Zo tool as an HTTP API endpoint
- Add x402 payment middleware (client pays per-call via USDC on Base)
- Register the endpoint as a Zo user service on port 4020
- The endpoint runs 24/7 and deposits earnings
cd /home/workspace/MoneyMachine/x402_server
node index.js
Endpoints Included
Endpoint
Price
Description
/api/signals/:ticker
$0.01
Options trading signal (bull/bear/neutral)
/api/whale/:ticker
$0.01
Whale flow alert (size, direction, conviction)
/api/wave/:ticker
$0.01
Elliott Wave count + Fibonacci levels
/api/maxpain/:ticker
$0.005
Max pain level + strike wall zones
/api/backtest
$0.05
Run options strategy backtest
/api/services
free
List all paid endpoints
Adding a New Paid Endpoint
const { paymentMiddleware } = require('@x402/express');
// Add to index.js:
app.get('/api/my-endpoint', paymentMiddleware(), async (req, res) => {
// Your logic here
res.json({ result: 'paid data', price: '$0.01' });
});
Payment Flow
- Client requests
/api/signals/AAPL
- Server returns
402 Payment Required with payment details
- Client pays USDC to facilitator
- Client retries with payment proof
- Server returns data
Docs
cd /home/workspace/MoneyMachine/x402_server
node index.js
| Endpoint | Price | Description |
|---|---|---|
/api/signals/:ticker |
$0.01 | Options trading signal (bull/bear/neutral) |
/api/whale/:ticker |
$0.01 | Whale flow alert (size, direction, conviction) |
/api/wave/:ticker |
$0.01 | Elliott Wave count + Fibonacci levels |
/api/maxpain/:ticker |
$0.005 | Max pain level + strike wall zones |
/api/backtest |
$0.05 | Run options strategy backtest |
/api/services |
free | List all paid endpoints |
Adding a New Paid Endpoint
const { paymentMiddleware } = require('@x402/express');
// Add to index.js:
app.get('/api/my-endpoint', paymentMiddleware(), async (req, res) => {
// Your logic here
res.json({ result: 'paid data', price: '$0.01' });
});
Payment Flow
- Client requests
/api/signals/AAPL
- Server returns
402 Payment Required with payment details
- Client pays USDC to facilitator
- Client retries with payment proof
- Server returns data
Docs
const { paymentMiddleware } = require('@x402/express');
// Add to index.js:
app.get('/api/my-endpoint', paymentMiddleware(), async (req, res) => {
// Your logic here
res.json({ result: 'paid data', price: '$0.01' });
});
- Client requests
/api/signals/AAPL - Server returns
402 Payment Requiredwith payment details - Client pays USDC to facilitator
- Client retries with payment proof
- Server returns data
Docs
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。