USDC On-Chain Payment

The standard payment method for developers with crypto wallets.

Setup

1. Get USDC on Base — bridge, swap, or buy via onramp (see Wallet Funding)

2. Approve spending — call usdc.approve(settlementContract, amount) from the Buy page. The settlementContract address is resolved dynamically from GET /v1/buyer/me (settlement_contract field); do not hardcode it.

3. Make requests — each request auto-settles from your wallet

How It Works

Your USDC stays in your wallet. The settlement contract has permission to pull the exact cost of each request via transferFrom(). You can revoke approval at any time.

  • No deposits, no escrow, no lockups
  • Every settlement is a verifiable Base transaction
  • Gas: ~$0.002 per settlement

Pre-Flight Check

Before routing your request, the server reads your on-chain balance and allowance. If either is insufficient for the estimated cost, you get a 402 response before any inference runs.