@coinbase/x402
for Node.js, cdp
for Python) are only needed for production. For testnet development, you can skip these. See Running on Mainnet for details.https://x402.org/facilitator
which works on Base Sepolia.
curl http://localhost:3000/your-endpoint
).X-PAYMENT
header containing the cryptographic proof of payment (payment payload).{ "data": "Your paid API response." }
).npm install
the dependencies in each example0xYourAddress
) is a real mainnet address where you want to receive USDC payments.