Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Pay for x402 payment-gated HTTP endpoints using USDC stablecoins
Pay for x402 payment-gated HTTP endpoints using USDC stablecoins
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
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 facilitator 3 โ 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": "...backend response..." } }
.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
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.