/v1/agent/* accept payment per request via the x402 payment protocol instead of an API key. An agent with a funded wallet can call them without signing up, without a key, and without buying credits.
Cost: 0.025 USDC per call, settled on Base (
eip155:8453). No credits, no account.Available x402 endpoints
There is no
/v1/agent/transactions. Transaction history is not available over x402. To read transaction history, use the API-key REST endpoint GET /v1/transactions.Parameters
One address per call. EVM (
0x...) or Solana (base58) for /portfolio, /wallet, /nav and /status; Solana only for /airdrop; EVM only for /approvals/{chain}; the Polymarket (proxy) wallet for /portfolio/proxy/polymarket. Not used by /chains or /chains/{chainKey}/protocols./portfolio and /portfolio/proxy/polymarket. Returns the result without the address field. These endpoints take one address, so there is nothing to combine and the holdings are unchanged.Currency for the returned value.
/nav only. Fiat only over x402: USD, EUR, CAD, AED, CHF, SGD (the crypto currencies of /v1/nav are not accepted here)./approvals/{chain} only. One of arbitrum, avalanche, base, binance, ethereum, gnosis, linea, optimism, polygon.Results per page: 1–100, default 20 for
/chains/{chainKey}/protocols and 25 for /approvals/{chain}./v1/agent/portfolio returns the same shape as /v1/portfolio, and likewise for Polymarket, Airdrop, Protocols and Token Approvals.
Choosing an access method
Default to the REST API with an API key. Reach for x402 only when the user explicitly asks for it, or when the agent has a funded wallet and cannot hold an API key.How x402 works
A request without payment returns HTTP402 Payment Required with a payment-required header containing a base64-encoded JSON payment challenge. Your x402 client reads the challenge, signs a USDC transfer, and retries the request with the payment attached.
amount is in USDC base units — 25000 = 0.025 USDC. asset is USDC on Base.
Example Request
Error Responses
402 Payment Required
402 Payment Required
Expected on every unpaid request — this is the x402 handshake, not a failure. Read the
payment-required header, settle the payment, and retry.404 Not Found
404 Not Found
The
/v1/agent/* path does not exist. Only portfolio, wallet, nav, status, chains, chains/{chainKey}/protocols, portfolio/proxy/polymarket, airdrop and approvals/{chain} are exposed over x402.Solution: If you need transactions, historical data, or token overview, use the API-key REST endpoints instead.Related
All REST Endpoints
The full 41-endpoint API reference
Transactions
Transaction history — API key only