Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Make paid API requests using the x402 HTTP payment protocol (USDC on Base Sepolia). Use when you need to access x402-protected services, pay for API calls wi...
Make paid API requests using the x402 HTTP payment protocol (USDC on Base Sepolia). Use when you need to access x402-protected services, pay for API calls wi...
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.
Make HTTP requests to x402-protected APIs. The x402 protocol uses HTTP 402 responses to request payment โ this skill handles signing USDC payments and retrying automatically.
Node.js 18+ installed A Base Sepolia wallet with ETH (gas) and USDC (payments)
bash <skill-dir>/scripts/setup.sh This installs the x402 SDK to ~/.x402-client/. Only needed once.
node <skill-dir>/scripts/wallet-gen.mjs --out ~/.x402-client/wallet.key
Get testnet tokens from faucets: Base Sepolia ETH (gas): https://www.alchemy.com/faucets/base-sepolia Base Sepolia USDC (payments): https://faucet.circle.com/ โ select Base Sepolia + USDC Send both to the wallet address printed by wallet-gen.
Set the environment variable for future use: export X402_PRIVATE_KEY=$(cat ~/.x402-client/wallet.key) Or pass --key-file ~/.x402-client/wallet.key to each request.
Use x402-fetch.mjs to make any x402-paid HTTP request: # Search the web ($0.001 USDC per query) node <skill-dir>/scripts/x402-fetch.mjs \ "https://<service-url>/web/search?q=latest+AI+news&count=5" \ --key-file ~/.x402-client/wallet.key The script automatically: Makes the HTTP request If 402 received, parses payment requirements Signs a USDC payment with your wallet Retries with the payment header Outputs the response JSON to stdout All scripts must be run from ~/.x402-client/ (where node_modules lives): cd ~/.x402-client && node <skill-dir>/scripts/x402-fetch.mjs "<url>" --key-file wallet.key
See references/services.md for a list of known x402 endpoints including a web search service.
"insufficient funds": Wallet needs more USDC or ETH. Use faucets above. 402 with no auto-payment: Ensure setup.sh was run and you're executing from ~/.x402-client/. Tunnel URL not working: The service URL may have changed. Ask the service operator or check /health.
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.