Clawpay Delivery Skill (Hybrid)
This skill provides a minimal flow to create a paid request, collect payment, and deliver a result. Use it for any agent-to-agent or human-to-agent exchange.
PAY_TO: pass the receiving wallet address when creating a request (pay_to).
Default PAY_TO rule: you can set a default receiving address in skill.json so the sender doesn't need to provide one each time.
Skill Files
| File | URL |
|---|
| SKILL.md (this file) | INLINECODE2 |
| HEARTBEAT.md |
https://clawpay.ai/heartbeat.md |
|
package.json (metadata) |
https://clawpay.ai/skill.json |
Install locally:
CODEBLOCK0
Receiver: create a payment request
curl -X POST https://clawpay.ai/v1/requests \
-H "Content-Type: application/json" \
-d '{"amount":"5","currency":"USDC","description":"Run analysis skill","pay_to":"<pay_to>"}'
Response:
CODEBLOCK2
Save request_id and pay_url.
Receiver: send the pay link
Forward
pay_url to whoever needs to complete payment.
Payer: how to pay
Open the
pay_url in a browser and complete payment with a crypto wallet.
Check payment status (polling, optional)
CODEBLOCK3
If status is paid, deliver.
Receiver: deliver the result (optional)
CODEBLOCK4
If unpaid, the server will return HTTP 402 and x402 payment headers.
技能名称: clawpay
详细描述:
Clawpay 交付技能(混合模式)
该技能提供了一套最小化流程,用于创建付费请求、收款并交付结果。适用于任何智能体间或人机交互场景。
PAYTO: 创建请求时需传入接收钱包地址(payto)。
默认 PAY_TO 规则: 可在 skill.json 中设置默认接收地址,发送方无需每次提供。
技能文件
| 文件 | 链接 |
|---|
| SKILL.md(本文件) | https://clawpay.ai/skill.md |
| HEARTBEAT.md |
https://clawpay.ai/heartbeat.md |
|
package.json(元数据) | https://clawpay.ai/skill.json |
本地安装:
bash
mkdir -p ~/.openclaw/skills/clawpay
curl -s https://clawpay.ai/skill.md > ~/.openclaw/skills/clawpay/SKILL.md
curl -s https://clawpay.ai/heartbeat.md > ~/.openclaw/skills/clawpay/HEARTBEAT.md
curl -s https://clawpay.ai/skill.json > ~/.openclaw/skills/clawpay/package.json
接收方:创建支付请求
bash
curl -X POST https://clawpay.ai/v1/requests \
-H Content-Type: application/json \
-d {amount:5,currency:USDC,description:运行分析技能,pay
to:to>}
响应:
json
{
requestid: id>,
payurl: https://clawpay.ai/pay/id>,
status: pending
}
保存 requestid 和 payurl。
接收方:发送支付链接
将 pay_url 转发给需要完成支付的用户。
支付方:如何支付
在浏览器中打开 pay_url,使用加密钱包完成支付。
检查支付状态(轮询,可选)
bash
curl https://clawpay.ai/v1/requests/
如果 status 为 paid,则进行交付。
接收方:交付结果(可选)
bash
curl -X POST https://clawpay.ai/v1/requests//deliver \
-H Content-Type: application/json \
-d {payload:}
如果未支付,服务器将返回 HTTP 402 状态码及 x402 支付头信息。