Use the npx agnic@latest x402 pay command to call x402-enabled API endpoints with automatic USDC payment on Base.
If the wallet is not authenticated, refer to the authenticate-wallet skill.
| | Full URL of the x402-enabled API endpoint | | -X, --method | HTTP method (default: GET) | | -d, --data | Request body as JSON string | | -q, --query | Query parameters as JSON string | | -h, --headers | Custom HTTP headers as JSON string | | --max-amount | Max payment in USDC atomic units (1000000 = $1.00) |
Make paid requests to x402-enabled APIs using USDC. Use when you or the user want to call a paid API, make an x402 payment, use a bazaar service, or pay for an API request. Covers phrases like "call this API", "use this service", "pay for the request", "make a paid call", "fetch from x402 endpoint". Source: agnicpay/agnic-wallet-skills.