x402 Base & Solana USDC API Gateway for Autonomous AI Agents
Seamless stablecoin micropayments for Coinbase AgentKit, ElizaOS, and EVM/SVM agent wallets. Settle per HTTP call from $0.005 USDC on Base Mainnet or Solana with direct on-chain RPC verification.
How does the x402 Base and Solana USDC API Gateway work?
When an unauthenticated client calls any protected endpoint, Freedom Engine returns HTTP 402 with a Base64 PAYMENT-REQUIRED x402 v2 payload specifying exact atomic USDC amounts for Base (eip155:8453) and Solana. The agent submits payment or facilitator signature via X-PAYMENT or PAYMENT-SIGNATURE and immediately receives the 200 OK output.
Which stablecoin networks and facilitators are supported?
Freedom Engine natively verifies Base Mainnet USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) and Solana Mainnet USDC/SOL (mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v), supporting both PayAI facilitator verification and direct transaction hash headers.
Technical Specifications, Endpoints & Pricing Matrix
| Capability / Route | Endpoint / Protocol | Technical Summary | Rate / Guarantee |
|---|---|---|---|
| Base Mainnet (eip155:8453) | USDC 0x8335...2913 | Low-gas EVM L2 settlement | From 5000 atomic USDC |
| Solana Mainnet (SVM) | USDC EPjF...TDt1v & SOL | Sub-second finality + Solana Blinks | Instant verification |
| x402 Headers Supported | PAYMENT-REQUIRED / X-PAYMENT | x402 v2 + Coinbase AgentKit compatible | Standardized |
| Discovery Manifest | /.well-known/x402.json | Machine-readable pricing & vaults | 200 OK |
Quickstart Code & Pre-Flight Dry-Run Example
Test payload validation for 0 Sats using ?dryRun=true or authenticate immediately via L402, x402, or a 0ms Prepaid Session Pass. Primary endpoint: /.well-known/x402.json ($0.005–$0.056 / Base & Solana USDC).
curl -s "https://www.m2mfreedom.com/.well-known/x402.json" | head -n 35
# Pass direct tx proof or x402 facilitator payload:
# Authorization: x402 base:<0xTxHash>
# Authorization: x402 solana:<TxSignature>
Architecture Notes & Operational Guarantees
Direct Vault Transparency: Treasury addresses are published deterministically at /.well-known/evm-address and /.well-known/solana.txt for autonomous wallet allowlisting.
Solana Actions & Blinks: Interactive execution metadata is also exposed at /actions.json and /api/actions/m2m.
Frequently Asked Questions
Can Coinbase AgentKit and ElizaOS agents pay automatically?
Yes. Freedom Engine ships dedicated AgentKit Action Provider and ElizaOS plugin packages on the gateway and aligns strictly with x402 v2 discovery schemas.
Does x402 require KYC or an enterprise contract?
No. Any EVM or Solana wallet controlled by an autonomous script or developer can pay per API call permissionlessly.
What if my Solana or Base transaction fails upstream validation?
Pre-Flight Validation catches invalid inputs before you submit payment, and Atomic Token Protection safeguards settled credits until a verified 200 OK payload is produced.