{"openapi":"3.0.3","info":{"title":"Fourohtwo","version":"2026-11","description":"Paid APIs for AI agents. Every API is an x402 endpoint. Call it, read the 402 challenge, sign an EIP-3009 transfer in USDG on Robinhood Chain (eip155:4663) or USDC on Base (eip155:8453), and retry with the PAYMENT-SIGNATURE header. Payment settles only after the API answers with a 2xx; errors cost nothing. New wallets get 5 free calls on Fourohtwo's own APIs (/x/<slug>): sign the sign-in-with-x challenge from the 402 and send it in the SIGN-IN-WITH-X header instead of paying. Easiest path: npm i fourohtwo (SDK) or npx fourohtwo-mcp (MCP server), which use the free calls first.\n\nVersioning: responses carry a Fourohtwo-Version header. Fields are only added, never removed or renamed, within a version. A breaking change ships as a new version you opt into with the Fourohtwo-Version request header; the old one then answers with Deprecation and Sunset headers for at least 90 days before it is retired. Changes are listed at https://fourohtwo.xyz/changelog.\n\nRate limits: every response carries RateLimit and RateLimit-Policy headers; over the limit you get 429 with Retry-After, and are not charged."},"externalDocs":{"url":"https://fourohtwo.gitbook.io/fourohtwo-docs","description":"Docs"},"servers":[{"url":"https://fourohtwo.xyz"}],"paths":{"/x/address-activity":{"get":{"operationId":"addressActivity","summary":"Address activity","description":"The most recent transactions sent or received by an address.","tags":["wallets"],"parameters":[{"name":"address","in":"query","required":true,"description":"Wallet or contract address","schema":{"type":"string"},"example":"0x4200000000000000000000000000000000000006"},{"name":"limit","in":"query","required":false,"description":"1 to 50, default 10","schema":{"type":"string"},"example":"10"},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"hash":{"type":"string"},"method":{"nullable":true},"status":{"type":"string"},"valueEth":{"type":"string"},"direction":{"type":"string"},"timestamp":{"type":"string","format":"date-time"},"counterparty":{"type":"string"}}}}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/chain-stats":{"get":{"operationId":"chainStats","summary":"Chain stats","description":"Network totals for Robinhood Chain: transactions, addresses, block time and ETH price.","tags":["chain"],"parameters":[{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"ethUsd":{"type":"number"},"chainId":{"type":"integer"},"gasPrices":{"type":"object","properties":{"fast":{"type":"number"},"slow":{"type":"number"},"average":{"type":"number"}}},"stablecoin":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"}}},"totalAddresses":{"type":"integer"},"totalTransactions":{"type":"integer"},"transactionsToday":{"type":"integer"},"averageBlockTimeMs":{"type":"integer"}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/contract-info":{"get":{"operationId":"contractInfo","summary":"Contract info","description":"Verification status, compiler, proxy implementation and callable methods of a contract.","tags":["security"],"parameters":[{"name":"address","in":"query","required":true,"description":"Contract address","schema":{"type":"string"},"example":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"proxy":{"type":"object","properties":{"type":{"type":"string"},"implementations":{"type":"array","items":{"type":"string"}}}},"address":{"type":"string"},"creator":{"type":"string"},"license":{"type":"string"},"compiler":{"type":"string"},"explorer":{"type":"string"},"verified":{"type":"boolean"},"readMethods":{"type":"array","items":{}},"writeMethods":{"type":"array","items":{}}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/dex-volume":{"get":{"operationId":"dexVolume","summary":"DEX volume","description":"24-hour trading volume on Robinhood Chain by exchange, with each DEX's share, liquidity and busiest pool.","tags":["trading"],"parameters":[{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"dex":{"type":"string"},"name":{"type":"string"},"pools":{"type":"integer"},"topPool":{"type":"string"},"sharePct":{"type":"number"},"liquidityUsd":{"type":"integer"},"volume24hUsd":{"type":"integer"}}}},"network":{"type":"string"},"totalVolume24hUsd":{"type":"integer"}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/gas":{"get":{"operationId":"gas","summary":"Gas now","description":"Current gas price and the cost of a plain transfer and a token swap on Robinhood Chain.","tags":["chain"],"parameters":[{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"block":{"type":"integer"},"ethUsd":{"type":"number"},"estimates":{"type":"object","properties":{"swap":{"type":"object","properties":{"eth":{"type":"string"},"usd":{"type":"number"}}},"ethTransfer":{"type":"object","properties":{"eth":{"type":"string"},"usd":{"type":"number"}}},"tokenTransfer":{"type":"object","properties":{"eth":{"type":"string"},"usd":{"type":"number"}}}}},"baseFeeGwei":{"type":"string"},"gasPriceGwei":{"type":"string"}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/market-hours":{"get":{"operationId":"marketHours","summary":"US market hours","description":"Whether the US stock market is open, in pre-market, after-hours or closed right now, with the next open and close times.","tags":["trading"],"parameters":[{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string"},"open":{"type":"boolean"},"market":{"type":"string"},"session":{"type":"string"},"nextOpen":{"type":"string","format":"date-time"},"nextClose":{"nullable":true},"earlyClose":{"type":"string"}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/new-pools":{"get":{"operationId":"newPools","summary":"New pools","description":"The newest liquidity pools on Robinhood Chain, so an agent can spot fresh launches early. Pair it with rug check.","tags":["trading"],"parameters":[{"name":"limit","in":"query","required":false,"description":"How many to return, up to 20 (default 10)","schema":{"type":"string"},"example":"10"},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"dex":{"type":"string"},"base":{"type":"object","properties":{"name":{"type":"string"},"symbol":{"type":"string"},"address":{"type":"string"},"priceUsd":{"type":"number"}}},"name":{"type":"string"},"quote":{"type":"object","properties":{"name":{"type":"string"},"symbol":{"type":"string"},"address":{"type":"string"},"priceUsd":{"type":"number"}}},"fdvUsd":{"type":"number"},"address":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"trades24h":{"type":"object","properties":{"buys":{"type":"integer"},"sells":{"type":"integer"},"buyers":{"type":"integer"},"sellers":{"type":"integer"}}},"volumeUsd":{"type":"object","properties":{"h1":{"type":"number"},"h6":{"type":"number"},"h24":{"type":"number"}}},"liquidityUsd":{"type":"number"},"marketCapUsd":{"nullable":true},"priceChangePct":{"type":"object","properties":{"h1":{"type":"integer"},"h6":{"type":"integer"},"m5":{"type":"integer"},"h24":{"type":"integer"}}}}}}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/ohlcv":{"get":{"operationId":"ohlcv","summary":"Price candles","description":"OHLCV candles for any Robinhood Chain pool by minute, hour or day, ready for charting or technical analysis.","tags":["trading"],"parameters":[{"name":"pool","in":"query","required":true,"description":"Pool address (or v4 pool id)","schema":{"type":"string"},"example":"0xf4acdaeeb7022862a763c9b1b885e11191c889e3"},{"name":"timeframe","in":"query","required":false,"description":"minute, hour or day (default hour)","schema":{"type":"string"},"example":"hour"},{"name":"aggregate","in":"query","required":false,"description":"Candle size: 1, 5 or 15 for minute; 1, 4 or 12 for hour","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"How many candles, up to 500 (default 100)","schema":{"type":"string"},"example":"48"},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"base":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"}}},"pool":{"type":"string"},"candles":{"type":"array","items":{"type":"object","properties":{"low":{"type":"number"},"high":{"type":"number"},"open":{"type":"number"},"time":{"type":"string","format":"date-time"},"close":{"type":"number"},"volumeUsd":{"type":"number"}}}},"aggregate":{"type":"integer"},"timeframe":{"type":"string"}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/pool-info":{"get":{"operationId":"poolInfo","summary":"Pool info","description":"Everything about one DEX pool on Robinhood Chain: both tokens, price, price moves, volume, liquidity, FDV and trades.","tags":["trading"],"parameters":[{"name":"address","in":"query","required":true,"description":"Pool address (or v4 pool id)","schema":{"type":"string"},"example":"0xf4acdaeeb7022862a763c9b1b885e11191c889e3"},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"dex":{"type":"string"},"base":{"type":"object","properties":{"name":{"type":"string"},"symbol":{"type":"string"},"address":{"type":"string"},"priceUsd":{"type":"number"}}},"name":{"type":"string"},"quote":{"type":"object","properties":{"name":{"type":"string"},"symbol":{"type":"string"},"address":{"type":"string"},"priceUsd":{"type":"number"}}},"fdvUsd":{"type":"number"},"address":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"trades24h":{"type":"object","properties":{"buys":{"type":"integer"},"sells":{"type":"integer"},"buyers":{"type":"integer"},"sellers":{"type":"integer"}}},"volumeUsd":{"type":"object","properties":{"h1":{"type":"number"},"h6":{"type":"number"},"h24":{"type":"number"}}},"liquidityUsd":{"type":"number"},"marketCapUsd":{"type":"number"},"priceChangePct":{"type":"object","properties":{"h1":{"type":"number"},"h6":{"type":"number"},"m5":{"type":"integer"},"h24":{"type":"number"}}}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/rug-check":{"get":{"operationId":"rugCheck","summary":"Rug check","description":"Risk score for a Robinhood Chain token: verified source, owner controls, holder concentration and age.","tags":["security"],"parameters":[{"name":"address","in":"query","required":true,"description":"Token contract address","schema":{"type":"string"},"example":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.02"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"facts":{"type":"object","properties":{"owner":{"nullable":true},"proxy":{"type":"boolean"},"holders":{"type":"integer"},"verified":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"top10SharePct":{"type":"number"}}},"flags":{"type":"array","items":{"type":"object","properties":{"flag":{"type":"string"},"points":{"type":"integer"}}}},"level":{"type":"string"},"token":{"type":"string"},"symbol":{"type":"string"},"explorer":{"type":"string"},"riskScore":{"type":"integer"}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/stock-movers":{"get":{"operationId":"stockMovers","summary":"Stock token movers","description":"The Robinhood stock tokens that rose and fell most in the last 24 hours on Robinhood Chain, and the most traded, skipping thin pools.","tags":["trading"],"parameters":[{"name":"limit","in":"query","required":false,"description":"How many in each list, up to 20 (default 5)","schema":{"type":"string"},"example":"5"},{"name":"min_volume_usd","in":"query","required":false,"description":"Leave out tokens that traded less than this in 24h (default 1000)","schema":{"type":"string"}},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string"},"losers":{"type":"array","items":{"type":"object","properties":{"ticker":{"type":"string"},"address":{"type":"string"},"priceUsd":{"type":"number"},"change24hPct":{"type":"number"},"marketCapUsd":{"type":"number"},"volume24hUsd":{"type":"number"}}}},"gainers":{"type":"array","items":{"type":"object","properties":{"ticker":{"type":"string"},"address":{"type":"string"},"priceUsd":{"type":"number"},"change24hPct":{"type":"number"},"marketCapUsd":{"type":"number"},"volume24hUsd":{"type":"number"}}}},"considered":{"type":"integer"},"mostTraded":{"type":"array","items":{"type":"object","properties":{"ticker":{"type":"string"},"address":{"type":"string"},"priceUsd":{"type":"number"},"change24hPct":{"type":"number"},"marketCapUsd":{"type":"number"},"volume24hUsd":{"type":"number"}}}},"minVolumeUsd":{"type":"integer"}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/stock-premium":{"get":{"operationId":"stockPremium","summary":"Stock token premium","description":"How far a Robinhood stock token's on-chain price sits above or below the real stock, with US market session and next open. Up to 10 tickers per call.","tags":["trading"],"parameters":[{"name":"tickers","in":"query","required":true,"description":"Comma-separated tickers, for example TSLA,NVDA (up to 10)","schema":{"type":"string"},"example":"TSLA,NVDA"},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"token":{"type":"string"},"market":{"type":"object","properties":{"source":{"type":"string"},"session":{"type":"string"},"nextOpen":{"nullable":true},"nextClose":{"nullable":true},"previousClose":{"type":"number"}}},"ticker":{"type":"string"},"verdict":{"type":"string"},"premiumPct":{"type":"number"},"stockPriceUsd":{"type":"number"},"onchainPriceUsd":{"type":"number"}}}},"notFound":{"type":"array","items":{}}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/stock-price":{"get":{"operationId":"stockPrice","summary":"Stock token price","description":"Live price of a Robinhood stock token like TSLA or NVDA on Robinhood Chain, with 24h change, volume, market cap and its deepest pools.","tags":["trading"],"parameters":[{"name":"ticker","in":"query","required":true,"description":"Stock ticker, for example TSLA, NVDA or SPY","schema":{"type":"string"},"example":"TSLA"},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"logo":{"type":"string"},"name":{"type":"string"},"ticker":{"type":"string"},"address":{"type":"string"},"network":{"type":"string"},"priceUsd":{"type":"number"},"topPools":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"},"liquidityUsd":{"type":"number"},"volume24hUsd":{"type":"number"}}}},"change24hPct":{"type":"number"},"liquidityUsd":{"type":"number"},"marketCapUsd":{"type":"number"},"volume24hUsd":{"type":"number"}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/stock-tokens":{"get":{"operationId":"stockTokens","summary":"Stock tokens","description":"Every Robinhood stock token traded on Robinhood Chain, with price, 24h change, volume and market cap, busiest first.","tags":["trading"],"parameters":[{"name":"limit","in":"query","required":false,"description":"How many to return, up to 100 (default 50)","schema":{"type":"string"},"example":"10"},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer"},"items":{"type":"array","items":{"type":"object","properties":{"ticker":{"type":"string"},"address":{"type":"string"},"priceUsd":{"type":"number"},"change24hPct":{"type":"number"},"marketCapUsd":{"type":"number"},"volume24hUsd":{"type":"number"}}}},"sortedBy":{"type":"string"}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/swap-quote":{"get":{"operationId":"swapQuote","summary":"Swap quote","description":"Best price to swap one Robinhood Chain token for another, with price impact and route sources.","tags":["trading"],"parameters":[{"name":"sell","in":"query","required":true,"description":"Token to sell: address or ETH","schema":{"type":"string"},"example":"ETH"},{"name":"buy","in":"query","required":true,"description":"Token to buy: address or ETH","schema":{"type":"string"},"example":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"},{"name":"amount","in":"query","required":true,"description":"Amount to sell, in whole tokens","schema":{"type":"string"},"example":"0.01"},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"buy":{"type":"object","properties":{"token":{"type":"string"},"amount":{"type":"string"},"minAmount":{"type":"string"}}},"sell":{"type":"object","properties":{"token":{"type":"string"},"amount":{"type":"string"}}},"route":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"sharePct":{"type":"integer"}}}},"issues":{"nullable":true},"gasEstimate":{"nullable":true}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/token-holders":{"get":{"operationId":"tokenHolders","summary":"Token holders","description":"Top holders of a token and how much of the supply the top 10 control.","tags":["tokens"],"parameters":[{"name":"address","in":"query","required":true,"description":"Token contract address","schema":{"type":"string"},"example":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"},{"name":"limit","in":"query","required":false,"description":"1 to 50, default 20","schema":{"type":"string"},"example":"20"},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"symbol":{"type":"string"},"holders":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"balance":{"type":"string"},"sharePct":{"type":"number"}}}},"top10SharePct":{"type":"number"}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/token-info":{"get":{"operationId":"tokenInfo","summary":"Token info","description":"Name, symbol, supply, holder count and market data for a token.","tags":["tokens"],"parameters":[{"name":"address","in":"query","required":true,"description":"Token contract address","schema":{"type":"string"},"example":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"symbol":{"type":"string"},"address":{"type":"string"},"holders":{"type":"integer"},"decimals":{"type":"integer"},"explorer":{"type":"string"},"priceUsd":{"type":"integer"},"totalSupply":{"type":"string"},"marketCapUsd":{"type":"integer"},"volume24hUsd":{"type":"integer"}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/token-price":{"get":{"operationId":"tokenPrice","summary":"Token price","description":"USD price, 24h change, volume and market cap for up to 30 Robinhood Chain tokens in one call.","tags":["tokens"],"parameters":[{"name":"addresses","in":"query","required":true,"description":"Token addresses, comma separated (up to 30)","schema":{"type":"string"},"example":"0x322f0929c4625ed5bad873c95208d54e1c003b2d,0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.002"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"priceUsd":{"type":"number"},"change24hPct":{"type":"number"},"marketCapUsd":{"type":"number"},"volume24hUsd":{"type":"number"}}}}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/top-tokens":{"get":{"operationId":"topTokens","summary":"Top tokens","description":"The largest tokens on Robinhood Chain by holders and market data.","tags":["tokens"],"parameters":[{"name":"limit","in":"query","required":false,"description":"1 to 50, default 20","schema":{"type":"string"},"example":"20"},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"tokens":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"symbol":{"type":"string"},"address":{"type":"string"},"holders":{"type":"integer"},"priceUsd":{"type":"number"},"marketCapUsd":{"type":"integer"}}}}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/trending-pools":{"get":{"operationId":"trendingPools","summary":"Trending pools","description":"The pools traders are piling into on Robinhood Chain right now, with price moves, volume, liquidity and buy/sell counts.","tags":["trading"],"parameters":[{"name":"duration","in":"query","required":false,"description":"5m, 1h, 6h or 24h (default 24h)","schema":{"type":"string"},"example":"1h"},{"name":"limit","in":"query","required":false,"description":"How many to return, up to 20 (default 10)","schema":{"type":"string"},"example":"10"},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"dex":{"type":"string"},"base":{"type":"object","properties":{"name":{"type":"string"},"symbol":{"type":"string"},"address":{"type":"string"},"priceUsd":{"type":"number"}}},"name":{"type":"string"},"quote":{"type":"object","properties":{"name":{"type":"string"},"symbol":{"type":"string"},"address":{"type":"string"},"priceUsd":{"type":"number"}}},"fdvUsd":{"type":"number"},"address":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"trades24h":{"type":"object","properties":{"buys":{"type":"integer"},"sells":{"type":"integer"},"buyers":{"type":"integer"},"sellers":{"type":"integer"}}},"volumeUsd":{"type":"object","properties":{"h1":{"type":"number"},"h6":{"type":"number"},"h24":{"type":"number"}}},"liquidityUsd":{"type":"number"},"marketCapUsd":{"type":"number"},"priceChangePct":{"type":"object","properties":{"h1":{"type":"number"},"h6":{"type":"number"},"m5":{"type":"number"},"h24":{"type":"number"}}}}}},"duration":{"type":"string"}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/tx-explain":{"get":{"operationId":"txExplain","summary":"Transaction explainer","description":"Plain-language summary of a transaction: who called what, value moved, token transfers and fee.","tags":["wallets"],"parameters":[{"name":"hash","in":"query","required":true,"description":"Transaction hash","schema":{"type":"string"},"example":"0x03086b0f2b31e48fa470428228ab949152f8b4d1aa6de339eac3ef00b82a5b45"},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"type":"string"},"from":{"type":"string"},"hash":{"type":"string"},"block":{"type":"integer"},"feeEth":{"type":"string"},"method":{"type":"string"},"status":{"type":"string"},"summary":{"type":"string"},"explorer":{"type":"string"},"valueEth":{"type":"string"},"timestamp":{"type":"string","format":"date-time"},"tokenTransfers":{"type":"array","items":{"type":"object","properties":{"to":{"type":"string"},"from":{"type":"string"},"token":{"type":"string"},"amount":{"type":"string"}}}}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/wallet-portfolio":{"get":{"operationId":"walletPortfolio","summary":"Wallet portfolio","description":"ETH and token balances for any address, with USD values where a price is known.","tags":["wallets"],"parameters":[{"name":"address","in":"query","required":true,"description":"Wallet address","schema":{"type":"string"},"example":"0x4200000000000000000000000000000000000006"},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.005"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"eth":{"type":"object","properties":{"usd":{"type":"number"},"balance":{"type":"string"}}},"tokens":{"type":"array","items":{"type":"object","properties":{"usd":{"type":"integer"},"name":{"type":"string"},"type":{"type":"string"},"token":{"type":"string"},"symbol":{"type":"string"},"balance":{"type":"string"}}}},"address":{"type":"string"},"usdTotal":{"type":"number"}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/x/whale-trades":{"get":{"operationId":"whaleTrades","summary":"Whale trades","description":"Recent large swaps of a token on Robinhood Chain: who bought or sold, how much in USD and in which pool, with buy and sell totals.","tags":["trading"],"parameters":[{"name":"token","in":"query","required":false,"description":"Token address (its three busiest pools are watched). Pass token or pool","schema":{"type":"string"},"example":"0xd0601ce157db5bdc3162bbac2a2c8af5320d9eec"},{"name":"pool","in":"query","required":false,"description":"One pool address instead of a token","schema":{"type":"string"}},{"name":"min_usd","in":"query","required":false,"description":"Smallest trade to include, in USD (default 1000)","schema":{"type":"string"},"example":"1000"},{"name":"limit","in":"query","required":false,"description":"Up to 100 (default 20)","schema":{"type":"string"}},{"$ref":"#/components/parameters/Version"}],"x-payment-info":{"protocols":["x402"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}},"responses":{"200":{"description":"The API answered. Payment settled; the PAYMENT-RESPONSE header carries the transaction.","headers":{"PAYMENT-RESPONSE":{"$ref":"#/components/headers/PaymentResponse"},"Fourohtwo-Version":{"$ref":"#/components/headers/Version"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"}},"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"tx":{"type":"string"},"kind":{"type":"string"},"pool":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"}}},"sold":{"type":"object","properties":{"token":{"type":"string"},"amount":{"type":"number"}}},"time":{"type":"string","format":"date-time"},"bought":{"type":"object","properties":{"token":{"type":"string"},"amount":{"type":"number"}}},"wallet":{"type":"string"},"valueUsd":{"type":"number"}}}},"pools":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"}}}},"minUsd":{"type":"integer"},"summary":{"type":"object","properties":{"buyUsd":{"type":"number"},"trades":{"type":"integer"},"sellUsd":{"type":"number"}}}}}}}},"400":{"description":"The input is missing or wrong. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Payment required. The PAYMENT-REQUIRED header lists what to sign (USDG on Robinhood Chain or USDC on Base).","headers":{"PAYMENT-REQUIRED":{"$ref":"#/components/headers/PaymentRequired"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"}}}},"403":{"description":"The agent's spending rules refused this call (paused, allowlist, or a limit). Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the Retry-After header. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The upstream API failed. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Busy for a moment, try again shortly. Not charged.","headers":{"X-Fourohtwo-Charged":{"description":"Always false on errors: failed calls cost nothing.","schema":{"type":"string","enum":["false"]}},"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","description":"Every error has the same shape. Errors are never charged.","required":["error"],"properties":{"error":{"type":"string","description":"What went wrong, in plain words, and what to do."},"charged":{"type":"boolean","description":"Whether the call was paid for. Always false on errors."}}},"Result":{"type":"object","description":"The API's JSON answer. Each API's fields are shown in its example on fourohtwo.xyz/apis/{slug}.","additionalProperties":true},"PaymentRequired":{"type":"object","description":"x402 challenge. Pay one entry of accepts, or sign the sign-in-with-x extension for a free call.","properties":{"x402Version":{"type":"integer"},"error":{"type":"string"},"accepts":{"type":"array","items":{"type":"object","additionalProperties":true}},"extensions":{"type":"object","additionalProperties":true}}}},"parameters":{"Version":{"name":"Fourohtwo-Version","in":"header","required":false,"description":"API version to use. The only version today is 2026-11; leaving it out means the latest.","schema":{"type":"string","enum":["2026-11"],"default":"2026-11"}}},"headers":{"Version":{"description":"The API version that answered.","schema":{"type":"string"}},"RateLimit":{"description":"Requests left in the current window and seconds until it resets (IETF RateLimit header).","schema":{"type":"string"}},"RateLimitPolicy":{"description":"The limit: requests (q) per window in seconds (w).","schema":{"type":"string"}},"PaymentRequired":{"description":"Base64 JSON with the x402 payment requirements.","schema":{"type":"string"}},"PaymentResponse":{"description":"Base64 JSON with the settlement transaction.","schema":{"type":"string"}}}}}