用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jiayaoqijia/cryptoskill --skill x402-cli命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
"Peer-driven onchain reputation layer for AI agents enabling kudos across reliability, speed, accuracy, creativity, and security categories."
"Interaction layer where humans, AI agents, and blockchain converge, powering a trustless reputation economy for ERC-8004 ecosystem."
"Interaction layer powering trustless reputation economy for ERC-8004 ecosystem with rewards for honest contributions."
基于 SOC 职业分类
正在显示 SKILL.md
| name | x402-cli |
| description | Pay for x402 payment-gated HTTP endpoints using USDC stablecoins |
| version | 1.0.3 |
| metadata | {"openclaw":{"requires":{"env":"[Truncated]","bins":"[Truncated]"},"primaryEnv":"EVM_PRIVATE_KEY","install":["[Truncated]","[Truncated]"],"homepage":"https://github.com/razvanmacovei/x402-cli"}} |
Pay for x402 payment-gated HTTP endpoints using USDC stablecoins.
Use this tool when you need to access an API that returns HTTP 402 Payment Required with x402 payment requirements. The tool handles the full payment flow: probe → sign → pay → return response.
Set EVM_PRIVATE_KEY environment variable with a wallet private key that holds USDC on the target network (e.g., Base Sepolia for testnet).
x402-cli --json --skip-verify <url>
Returns JSON with probe.paymentRequirements containing the price, network, and asset.
x402-cli --json -y <url>
Returns JSON with payment.body containing the backend response and payment.paymentResponse containing the transaction hash.
x402-cli --json -y -X POST -d '{"query": "hello"}' -H 'Content-Type: application/json' <url>
x402-cli --json -y -k <url>
0 — Success (payment accepted or probe completed)1 — Error (network, config, or unexpected failure)2 — Payment rejected by facilitator3 — Route is free (no payment needed){
"status": "accepted",
"probe": {
"statusCode": 402,
"paymentRequired": true,
"paymentRequirements": { "...x402 requirements..." }
},
"payment": {
"statusCode": 200,
"accepted": true,
"signer": "0x...",
"paymentResponse": { "success": true, "transaction": "0x...", "network": "eip155:84532" },
"body":
.status — "free", "payment_required", "accepted", "rejected", "error".probe.paymentRequirements.accepts[0].amount — price in atomic units.probe.paymentRequirements.accepts[0].network — chain ID (e.g., eip155:84532).payment.body — the actual backend response after payment.payment.paymentResponse.transaction — on-chain transaction hash