← ClaudeAtlas

x402-pay-genesislisted

Inspect payment requirements for, and pay, any x402 endpoint using USDC on Base. Use when you or the user want to call a paid API, pay per request, check what an endpoint costs, buy access to an agent service, or test an x402 payment flow end to end. Covers "what does this endpoint cost", "pay this API", "call a paid service", "buy this data".
igor-holt/x402-monetize-plugin · ★ 0 · AI & Automation · score 60
Install: claude install-skill igor-holt/x402-monetize-plugin
# Pay for an x402 Service Call APIs that charge USDC per request. Payment replaces the API key entirely — there is no account to create. ## Prerequisites The wallet must be running and authenticated: ```bash npx awal@2.0.3 status ``` If it is not authenticated, use the `authenticate-wallet` skill first. ## Step 1: Inspect the price before paying Checking payment requirements is always free. Never pay an endpoint without reading its terms first. ```bash npx awal@2.0.3 x402 details <URL> ``` Or with plain curl — an unpaid call returns HTTP 402 and a machine-readable body: ```bash curl -i -X POST https://x402-paid-service.iholt.workers.dev/api/execute ``` The `accepts` array tells you everything that matters: | Field | Meaning | | --- | --- | | `scheme` | Payment scheme, normally `exact` | | `network` | CAIP-2 chain id, e.g. `eip155:8453` for Base mainnet | | `asset` | Token contract; `0x8335...2913` is USDC on Base | | `amount` | Price in the asset's base units. USDC has 6 decimals, so `10000` = $0.01 | | `payTo` | Address that receives the payment | | `maxTimeoutSeconds` | How long the quote stays valid | **Always convert `amount` yourself before paying.** Divide by 10^6 for USDC. `4999000000` is $4,999.00, not $4.99. ## Step 2: Pay ```bash npx awal@2.0.3 x402 pay <URL> ``` This signs an EIP-3009 `transferWithAuthorization`, retries the request with the payment header, and returns the response body on success. ## Reference endpoints Live on Base mainnet, sett