# agents.txt # Standard: https://agents-txt.com Protocols: x402 ## How to call and pay Every endpoint under /paid returns HTTP 402 on a request with no payment attached. The 402 response carries the same payment options in two places at once, so either an x402 v1 or v2 client can use it: - PAYMENT-REQUIRED response header: base64-encoded JSON (x402 v2 shape). Decode it to get "accepts": an array of { scheme, network, amount, asset, payTo, maxTimeoutSeconds } per accepted network. "network" is a CAIP-2 id, e.g. "eip155:8453" for Base mainnet or "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet. - JSON response body: the same options, x402 v1 shape. Each entry uses "maxAmountRequired" instead of "amount", and a plain network name ("base", "solana-mainnet") instead of a CAIP-2 id. Steps: 1. Call the endpoint with no payment header. You will get HTTP 402. 2. Read either the header or the body (both describe the same options) and pick one accepted network you can pay on. 3. Construct a signed payment for the exact amount and payTo address given, on that network. USDC only, "exact" scheme. 4. Retry the identical request, this time with a PAYMENT-SIGNATURE header (x402 v2 clients) or an X-PAYMENT header (x402 v1 clients) carrying your signed payment payload. 5. On success you get HTTP 200 with the real result, plus a PAYMENT-RESPONSE header confirming on-chain settlement. Required parameters are checked before payment is charged -- if you call an endpoint missing a required field (see /docs or /openapi.json for each endpoint's parameters), you will get a 400 with no payment attempted, not a charge followed by a rejection. ## Machine-readable discovery - [/openapi.json](https://tariffmonkee.com/openapi.json): full OpenAPI 3.1 catalog, recommended primary discovery path - [/.well-known/x402](https://tariffmonkee.com/.well-known/x402): fan-out manifest listing every paid resource URL, compatibility path - [/docs](https://tariffmonkee.com/docs): human/agent-readable JSON catalog with descriptions and examples ## Everything else See [llms.txt](https://tariffmonkee.com/llms.txt) for the full site map.