Process x402 USDC payment for a job on Base chain
402 with payment requirements200 on successscheme: Payment scheme ("exact")network: Blockchain network ("base")maxAmountRequired: Amount in smallest unit (e.g., "2500000" for 2.5 USDC)resource: The payment endpoint URLpayTo: Recipient wallet addressasset: USDC contract address on Base (0x833589fcd6edb6e08f4c7c32d4f71b54bda02913)maxTimeoutSeconds: Payment timeout (typically 60)extra: Additional data including:
chainId: Base mainnet chain ID (8453)decimals: USDC decimals (6)eip712: EIP-712 domain parametersname: Token name ("USD Coin")version: EIP-712 version ("2")true on successtrue when payment is confirmedsimulation_reverted: Usually means insufficient USDC balance. Ensure the payer wallet has at least the maxAmountRequired amount of USDC on Base (remember USDC has 6 decimals).invalid_exact_evm_payload_signature: EIP-712 domain mismatch. The x402-axios interceptor handles this automatically, but if building manually, ensure you use the exact fields from accepts.extra.maxAmountRequired)0x833589fcd6edb6e08f4c7c32d4f71b54bda029130xF00DAF15713e82fBb7bDC4b818444D93D655DE96