{"openapi":"3.1.0","info":{"title":"Cross-Chain Gas & MEV Oracle API","summary":"Pay-per-call gas, congestion and MEV-risk oracle for AI agents.","description":"Real-time gas pricing, block congestion, MEV front-running risk and 15-minute fee-trend predictions for\n**27 blockchain networks: Ethereum, Base, Arbitrum, Optimism, Polygon, BNBChain, Avalanche, Bitcoin and Solana, plus 18 more (see the chain_name list in /openapi.json)**, built for autonomous payment agents, bridge orchestrators\nand high-frequency trading bots.\n\n**$0.01 USDC per call.** Pay with x402 (USDC on Base) or a Skyfire token (`kyapay-token` header: `kya`, `pay`,\n`kya-pay`). Skyfire `kya` tokens get a free 2-chain sample. You are charged only for successful (2xx) responses.\n\nInformational only; not financial advice.\n","version":"2.3.1","x-guidance":"Call GET /v1/gas/oracle for the full multi-chain report (27 blockchain networks: Ethereum, Base, Arbitrum, Optimism, Polygon, BNBChain, Avalanche, Bitcoin and Solana, plus 18 more (see the chain_name list in /openapi.json)) or GET /v1/gas/chain/{chain_name} for one chain (chain_name is one of: ethereum, base, arbitrum, optimism, solana, polygon, bnbchain, avalanche, gnosis, sonic, berachain, cronos, hyperevm, celo, linea, scroll, blast, unichain, worldchain, ink, soneium, mode, bitcoin, tron, sui, aptos, ton). Each call costs $0.01 USDC: pay with x402 on Base (eip155:8453) or send a Skyfire token in the kyapay-token header. Skyfire kya tokens get a free 2-chain sample."},"paths":{"/":{"get":{"tags":["Meta"],"summary":"Service index","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/health":{"get":{"tags":["Meta"],"summary":"Liveness, configuration and cache freshness","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/v1/pricing":{"get":{"tags":["Meta"],"summary":"Price and accepted payment methods","operationId":"pricing_v1_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/v1/gas/oracle":{"get":{"tags":["Gas Oracle"],"summary":"Cross-chain gas, congestion and MEV-risk report","description":"Latest report for 27 blockchain networks: Ethereum, Base, Arbitrum, Optimism, Polygon, BNBChain, Avalanche, Bitcoin and Solana, plus 18 more (see the chain_name list in /openapi.json): gas price, estimated standard-transfer cost in USD, block congestion, MEV front-running risk and the 15-minute fee trend, plus the optimal execution chain and a one-sentence routing recommendation. Skyfire `kya` tokens receive a free 2-chain sample.","operationId":"gas_oracle_v1_gas_oracle_get","responses":{"200":{"description":"Latest oracle report.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GasOracleReport"}}}},"503":{"description":"No fresh report in the cache. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"Payment required. Pay with x402 (USDC on Base) by resending the request with PAYMENT-SIGNATURE, or send a Skyfire token in the `kyapay-token` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON identical to the response body.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"},"example":{"x402Version":2,"error":"Payment required: send an x402 PAYMENT-SIGNATURE (USDC on Base) or a Skyfire token in the kyapay-token header (kya, pay or kya-pay).","resource":{"url":"https://gas.rdxdata.xyz/v1/gas/oracle","description":"Real-time cross-chain gas pricing, block congestion, MEV front-running risk and 15-minute fee trend predictions for 27 blockchain networks: Ethereum, Base, Arbitrum, Optimism, Polygon, BNBChain, Avalanche, Bitcoin and Solana, plus 18 more (see the chain_name list in /openapi.json).","mimeType":"application/json","serviceName":"Cross-Chain Gas & MEV Oracle","tags":["gas","mev","oracle","defi","multichain"]},"accepts":[{"scheme":"exact","network":"eip155:8453","amount":"10000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","maxTimeoutSeconds":60,"extra":{"name":"USD Coin","version":"2"}}],"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","headers":{"Accept":"application/json"}},"output":{"type":"json","example":{"status":"ok","generated_at":"2026-11-24T05:50:00Z","model_used":"rdx-gas-oracle-v2","optimal_execution_chain":"Base","chains":{"Ethereum":{"gas_price_gwei_or_lamports":1.82,"unit":"gwei","est_erc20_transfer_usd":0.473,"block_congestion_pct":52.4,"mev_frontrun_risk":"MEDIUM","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:58Z"},"Base":{"gas_price_gwei_or_lamports":0.006,"unit":"gwei","est_erc20_transfer_usd":0.0016,"block_congestion_pct":31.7,"mev_frontrun_risk":"LOW","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:58Z"},"Arbitrum":{"gas_price_gwei_or_lamports":0.02,"unit":"gwei","est_erc20_transfer_usd":0.0052,"block_congestion_pct":0.05,"mev_frontrun_risk":"LOW","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:59Z"},"Optimism":{"gas_price_gwei_or_lamports":0.005,"unit":"gwei","est_erc20_transfer_usd":0.0013,"block_congestion_pct":24.9,"mev_frontrun_risk":"LOW","next_15m_trend":"FALLING","data_status":"live","observed_at":"2026-11-24T05:49:58Z"},"Solana":{"gas_price_gwei_or_lamports":12500.0,"unit":"microlamports_per_cu","est_erc20_transfer_usd":0.0011,"block_congestion_pct":63.3,"mev_frontrun_risk":"MEDIUM","next_15m_trend":"RISING","data_status":"live","observed_at":"2026-11-24T05:49:59Z"},"Polygon":{"gas_price_gwei_or_lamports":30.5,"unit":"gwei","est_erc20_transfer_usd":0.0004,"block_congestion_pct":38.2,"mev_frontrun_risk":"MEDIUM","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:59Z"},"BNBChain":{"gas_price_gwei_or_lamports":0.05,"unit":"gwei","est_erc20_transfer_usd":0.0029,"block_congestion_pct":22.6,"mev_frontrun_risk":"HIGH","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:59Z"},"Bitcoin":{"gas_price_gwei_or_lamports":3.0,"unit":"sat_per_vb","est_erc20_transfer_usd":0.423,"block_congestion_pct":20.0,"mev_frontrun_risk":"LOW","next_15m_trend":"FALLING","data_status":"live","observed_at":"2026-11-24T05:49:59Z"},"Tron":{"gas_price_gwei_or_lamports":100.0,"unit":"sun_per_energy","est_erc20_transfer_usd":1.95,"block_congestion_pct":null,"mev_frontrun_risk":"MEDIUM","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:59Z"}},"routing_recommendation":"Execute on Optimism or Base now: both cost under $0.002 per standard transfer with LOW MEV risk and stable-to-falling fees.","reference_prices":{"eth_usd":4000.0,"sol_usd":250.0,"native_usd":{"ETH":4000.0,"SOL":250.0,"POL":0.2,"BNB":900.0,"BTC":100000.0,"TRX":0.3},"estimated":[],"source":"defillama"},"degraded_chains":[]}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}},"required":["type"]}},"required":["input"]}}}}}}},"403":{"description":"Invalid Skyfire token (bad signature, expired or unsupported type)."}},"security":[{"SkyfireToken":[]},{}],"x-skyfire-token-type":["kya","pay","kya-pay"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"protocols":[{"x402":{}}]},"x-x402":{"x402Version":2,"accepts":[{"scheme":"exact","network":"eip155:8453","amount":"10000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","maxTimeoutSeconds":60,"extra":{"name":"USD Coin","version":"2"}}],"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","headers":{"Accept":"application/json"}},"output":{"type":"json","example":{"status":"ok","generated_at":"2026-11-24T05:50:00Z","model_used":"rdx-gas-oracle-v2","optimal_execution_chain":"Base","chains":{"Ethereum":{"gas_price_gwei_or_lamports":1.82,"unit":"gwei","est_erc20_transfer_usd":0.473,"block_congestion_pct":52.4,"mev_frontrun_risk":"MEDIUM","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:58Z"},"Base":{"gas_price_gwei_or_lamports":0.006,"unit":"gwei","est_erc20_transfer_usd":0.0016,"block_congestion_pct":31.7,"mev_frontrun_risk":"LOW","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:58Z"},"Arbitrum":{"gas_price_gwei_or_lamports":0.02,"unit":"gwei","est_erc20_transfer_usd":0.0052,"block_congestion_pct":0.05,"mev_frontrun_risk":"LOW","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:59Z"},"Optimism":{"gas_price_gwei_or_lamports":0.005,"unit":"gwei","est_erc20_transfer_usd":0.0013,"block_congestion_pct":24.9,"mev_frontrun_risk":"LOW","next_15m_trend":"FALLING","data_status":"live","observed_at":"2026-11-24T05:49:58Z"},"Solana":{"gas_price_gwei_or_lamports":12500.0,"unit":"microlamports_per_cu","est_erc20_transfer_usd":0.0011,"block_congestion_pct":63.3,"mev_frontrun_risk":"MEDIUM","next_15m_trend":"RISING","data_status":"live","observed_at":"2026-11-24T05:49:59Z"},"Polygon":{"gas_price_gwei_or_lamports":30.5,"unit":"gwei","est_erc20_transfer_usd":0.0004,"block_congestion_pct":38.2,"mev_frontrun_risk":"MEDIUM","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:59Z"},"BNBChain":{"gas_price_gwei_or_lamports":0.05,"unit":"gwei","est_erc20_transfer_usd":0.0029,"block_congestion_pct":22.6,"mev_frontrun_risk":"HIGH","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:59Z"},"Bitcoin":{"gas_price_gwei_or_lamports":3.0,"unit":"sat_per_vb","est_erc20_transfer_usd":0.423,"block_congestion_pct":20.0,"mev_frontrun_risk":"LOW","next_15m_trend":"FALLING","data_status":"live","observed_at":"2026-11-24T05:49:59Z"},"Tron":{"gas_price_gwei_or_lamports":100.0,"unit":"sun_per_energy","est_erc20_transfer_usd":1.95,"block_congestion_pct":null,"mev_frontrun_risk":"MEDIUM","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:59Z"}},"routing_recommendation":"Execute on Optimism or Base now: both cost under $0.002 per standard transfer with LOW MEV risk and stable-to-falling fees.","reference_prices":{"eth_usd":4000.0,"sol_usd":250.0,"native_usd":{"ETH":4000.0,"SOL":250.0,"POL":0.2,"BNB":900.0,"BTC":100000.0,"TRX":0.3},"estimated":[],"source":"defillama"},"degraded_chains":[]}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}},"required":["type"]}},"required":["input"]}}}}}},"/v1/gas/chain/{chain_name}":{"get":{"tags":["Gas Oracle"],"summary":"Gas, congestion and MEV risk for one chain","description":"One chain from the latest report. `chain_name` is one of ethereum, base, arbitrum, optimism, solana, polygon, bnbchain, avalanche, gnosis, sonic, berachain, cronos, hyperevm, celo, linea, scroll, blast, unichain, worldchain, ink, soneium, mode, bitcoin, tron, sui, aptos, ton.","operationId":"gas_chain_v1_gas_chain__chain_name__get","parameters":[{"name":"chain_name","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40,"description":"ethereum | base | arbitrum | optimism | solana | polygon | bnbchain | avalanche | gnosis | sonic | berachain | cronos | hyperevm | celo | linea | scroll | blast | unichain | worldchain | ink | soneium | mode | bitcoin | tron | sui | aptos | ton (aliases such as eth, arb, op, sol, matic, bsc and EVM chain ids also work).","examples":["base"],"title":"Chain Name","enum":["ethereum","base","arbitrum","optimism","solana","polygon","bnbchain","avalanche","gnosis","sonic","berachain","cronos","hyperevm","celo","linea","scroll","blast","unichain","worldchain","ink","soneium","mode","bitcoin","tron","sui","aptos","ton"]},"description":"ethereum | base | arbitrum | optimism | solana | polygon | bnbchain | avalanche | gnosis | sonic | berachain | cronos | hyperevm | celo | linea | scroll | blast | unichain | worldchain | ink | soneium | mode | bitcoin | tron | sui | aptos | ton (aliases such as eth, arb, op, sol, matic, bsc and EVM chain ids also work)."}],"responses":{"200":{"description":"Latest data for the chain.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChainViewResponse"}}}},"404":{"description":"Unknown chain, or a chain the latest report does not measure. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"No fresh data in the cache. Not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"Payment required. Pay with x402 (USDC on Base) by resending the request with PAYMENT-SIGNATURE, or send a Skyfire token in the `kyapay-token` header.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON identical to the response body.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentRequired"},"example":{"x402Version":2,"error":"Payment required: send an x402 PAYMENT-SIGNATURE (USDC on Base) or a Skyfire token in the kyapay-token header (kya, pay or kya-pay).","resource":{"url":"https://gas.rdxdata.xyz/v1/gas/chain/base","description":"Real-time gas price, block congestion, MEV front-running risk and 15-minute fee trend for one of 27 networks (e.g. ethereum, base, arbitrum, polygon, bnbchain, solana).","mimeType":"application/json","serviceName":"Cross-Chain Gas & MEV Oracle","tags":["gas","mev","oracle","defi","multichain"]},"accepts":[{"scheme":"exact","network":"eip155:8453","amount":"10000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","maxTimeoutSeconds":60,"extra":{"name":"USD Coin","version":"2"}}],"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","headers":{"Accept":"application/json"},"pathParams":{"chain_name":"base"}},"output":{"type":"json","example":{"chain":"Base","status":"ok","generated_at":"2026-11-24T05:50:00Z","model_used":"rdx-gas-oracle-v2","is_optimal_execution_chain":true,"gas_price_gwei_or_lamports":0.006,"unit":"gwei","est_erc20_transfer_usd":0.0016,"block_congestion_pct":31.7,"mev_frontrun_risk":"LOW","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:58Z","reference_prices":{"eth_usd":4000.0,"sol_usd":250.0,"native_usd":{"ETH":4000.0,"SOL":250.0,"POL":0.2,"BNB":900.0,"BTC":100000.0,"TRX":0.3},"estimated":[],"source":"defillama"}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"headers":{"type":"object","additionalProperties":{"type":"string"}},"pathParams":{"type":"object","properties":{"chain_name":{"type":"string"}},"required":["chain_name"]}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}},"required":["type"]}},"required":["input"]},"routeTemplate":"/v1/gas/chain/:chain_name"}}}}}},"403":{"description":"Invalid Skyfire token (bad signature, expired or unsupported type)."}},"security":[{"SkyfireToken":[]},{}],"x-skyfire-token-type":["kya","pay","kya-pay"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"protocols":[{"x402":{}}]},"x-x402":{"x402Version":2,"accepts":[{"scheme":"exact","network":"eip155:8453","amount":"10000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","maxTimeoutSeconds":60,"extra":{"name":"USD Coin","version":"2"}}],"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","headers":{"Accept":"application/json"},"pathParams":{"chain_name":"base"}},"output":{"type":"json","example":{"chain":"Base","status":"ok","generated_at":"2026-11-24T05:50:00Z","model_used":"rdx-gas-oracle-v2","is_optimal_execution_chain":true,"gas_price_gwei_or_lamports":0.006,"unit":"gwei","est_erc20_transfer_usd":0.0016,"block_congestion_pct":31.7,"mev_frontrun_risk":"LOW","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:58Z","reference_prices":{"eth_usd":4000.0,"sol_usd":250.0,"native_usd":{"ETH":4000.0,"SOL":250.0,"POL":0.2,"BNB":900.0,"BTC":100000.0,"TRX":0.3},"estimated":[],"source":"defillama"}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"headers":{"type":"object","additionalProperties":{"type":"string"}},"pathParams":{"type":"object","properties":{"chain_name":{"type":"string"}},"required":["chain_name"]}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}},"required":["type"]}},"required":["input"]},"routeTemplate":"/v1/gas/chain/:chain_name"}}}}}},"components":{"schemas":{"ChainReport":{"properties":{"gas_price_gwei_or_lamports":{"type":"number","minimum":0.0,"title":"Gas Price Gwei Or Lamports","description":"The chain's fee level in the unit named by `unit`: gwei (EVM), p75 priority fee in microlamports per compute unit (Solana), sat/vB next-block feerate (Bitcoin), sun per energy (Tron), MIST per computation unit (Sui), octas per gas unit (Aptos), nanoTON per gas unit (TON). Not comparable across units; compare est_erc20_transfer_usd instead."},"unit":{"type":"string","enum":["gwei","microlamports_per_cu","sat_per_vb","sun_per_energy","mist_per_gas_unit","octas_per_gas_unit","nanoton_per_gas_unit"],"title":"Unit","default":"gwei"},"est_erc20_transfer_usd":{"type":"number","minimum":0.0,"title":"Est Erc20 Transfer Usd","description":"Estimated cost of one standard transfer in USD: an ERC-20 / SPL / TRC-20 / jetton token transfer, or a native transfer on Bitcoin, Sui and Aptos. Execution fees only: rollup L1 data fees are not included. The assumption per non-EVM chain is listed in /llms.txt."},"block_congestion_pct":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Block Congestion Pct","description":"EVM: latest block gasUsed/gasLimit. Solana: share of recent slots paying a non-zero priority fee. Bitcoin: mempool backlog, 100 = ten or more blocks of unconfirmed transactions. null for Tron, Sui, Aptos and TON, which publish no usable fullness signal."},"mev_frontrun_risk":{"type":"string","enum":["LOW","MEDIUM","HIGH"],"title":"Mev Frontrun Risk"},"next_15m_trend":{"type":"string","enum":["FALLING","STABLE","RISING"],"title":"Next 15M Trend"},"data_status":{"type":"string","enum":["live","stale"],"title":"Data Status","default":"live"},"observed_at":{"type":"string","title":"Observed At","description":"ISO-8601 UTC time this chain was measured."}},"additionalProperties":false,"type":"object","required":["gas_price_gwei_or_lamports","est_erc20_transfer_usd","mev_frontrun_risk","next_15m_trend","observed_at"],"title":"ChainReport"},"ChainViewResponse":{"properties":{"gas_price_gwei_or_lamports":{"type":"number","minimum":0.0,"title":"Gas Price Gwei Or Lamports","description":"The chain's fee level in the unit named by `unit`: gwei (EVM), p75 priority fee in microlamports per compute unit (Solana), sat/vB next-block feerate (Bitcoin), sun per energy (Tron), MIST per computation unit (Sui), octas per gas unit (Aptos), nanoTON per gas unit (TON). Not comparable across units; compare est_erc20_transfer_usd instead."},"unit":{"type":"string","enum":["gwei","microlamports_per_cu","sat_per_vb","sun_per_energy","mist_per_gas_unit","octas_per_gas_unit","nanoton_per_gas_unit"],"title":"Unit","default":"gwei"},"est_erc20_transfer_usd":{"type":"number","minimum":0.0,"title":"Est Erc20 Transfer Usd","description":"Estimated cost of one standard transfer in USD: an ERC-20 / SPL / TRC-20 / jetton token transfer, or a native transfer on Bitcoin, Sui and Aptos. Execution fees only: rollup L1 data fees are not included. The assumption per non-EVM chain is listed in /llms.txt."},"block_congestion_pct":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Block Congestion Pct","description":"EVM: latest block gasUsed/gasLimit. Solana: share of recent slots paying a non-zero priority fee. Bitcoin: mempool backlog, 100 = ten or more blocks of unconfirmed transactions. null for Tron, Sui, Aptos and TON, which publish no usable fullness signal."},"mev_frontrun_risk":{"type":"string","enum":["LOW","MEDIUM","HIGH"],"title":"Mev Frontrun Risk"},"next_15m_trend":{"type":"string","enum":["FALLING","STABLE","RISING"],"title":"Next 15M Trend"},"data_status":{"type":"string","enum":["live","stale"],"title":"Data Status","default":"live"},"observed_at":{"type":"string","title":"Observed At","description":"ISO-8601 UTC time this chain was measured."},"chain":{"type":"string","title":"Chain"},"status":{"type":"string","enum":["ok","degraded"],"title":"Status"},"generated_at":{"type":"string","title":"Generated At"},"model_used":{"type":"string","title":"Model Used","description":"Engine that produced the risk and trend judgement: `rdx-gas-oracle-v2`, or `baseline-heuristic` when the statistical baseline was used. Fees, congestion and costs are always measured, never model-written."},"is_optimal_execution_chain":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Optimal Execution Chain"},"sample":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sample","description":"True when served to a free kya (identity) token."},"reference_prices":{"anyOf":[{"$ref":"#/components/schemas/ReferencePrices"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["gas_price_gwei_or_lamports","est_erc20_transfer_usd","mev_frontrun_risk","next_15m_trend","observed_at","chain","status","generated_at","model_used"],"title":"ChainViewResponse","description":"Documentation model for GET /v1/gas/chain/{chain_name} (see chain_view)."},"ErrorResponse":{"properties":{"error":{"type":"string","title":"Error"},"message":{"type":"string","title":"Message"}},"type":"object","required":["error","message"],"title":"ErrorResponse"},"GasOracleReport":{"properties":{"status":{"type":"string","enum":["ok","degraded"],"title":"Status"},"generated_at":{"type":"string","title":"Generated At"},"model_used":{"type":"string","title":"Model Used","description":"Engine that produced the risk and trend judgement: `rdx-gas-oracle-v2`, or `baseline-heuristic` when the statistical baseline was used. Fees, congestion and costs are always measured, never model-written."},"optimal_execution_chain":{"type":"string","title":"Optimal Execution Chain"},"chains":{"additionalProperties":{"$ref":"#/components/schemas/ChainReport"},"type":"object","title":"Chains"},"routing_recommendation":{"type":"string","maxLength":400,"minLength":1,"title":"Routing Recommendation"},"reference_prices":{"anyOf":[{"$ref":"#/components/schemas/ReferencePrices"},{"type":"null"}]},"degraded_chains":{"items":{"type":"string"},"type":"array","title":"Degraded Chains"}},"additionalProperties":false,"type":"object","required":["status","generated_at","model_used","optimal_execution_chain","chains","routing_recommendation"],"title":"GasOracleReport"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ReferencePrices":{"properties":{"eth_usd":{"type":"number","exclusiveMinimum":0.0,"title":"Eth Usd"},"sol_usd":{"type":"number","exclusiveMinimum":0.0,"title":"Sol Usd"},"native_usd":{"additionalProperties":{"type":"number"},"type":"object","title":"Native Usd","description":"USD price of each gas token used for the cost estimates, keyed by symbol (ETH, SOL, POL, BNB, BTC, TRX, ...)."},"estimated":{"items":{"type":"string"},"type":"array","title":"Estimated","description":"Symbols priced from a built-in constant because no live or previous price was available."},"source":{"type":"string","enum":["defillama","last_known","fallback"],"title":"Source"}},"additionalProperties":false,"type":"object","required":["eth_usd","sol_usd","source"],"title":"ReferencePrices"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"PaymentRequired":{"type":"object","description":"x402 v2 PaymentRequired. Also delivered base64-encoded in the PAYMENT-REQUIRED response header.","required":["x402Version","accepts"],"properties":{"x402Version":{"type":"integer","enum":[2]},"error":{"type":"string"},"resource":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"description":{"type":"string"},"mimeType":{"type":"string"}}},"accepts":{"type":"array","items":{"type":"object","required":["scheme","network","amount","asset","payTo"],"properties":{"scheme":{"type":"string","enum":["exact"]},"network":{"type":"string","example":"eip155:8453"},"amount":{"type":"string","description":"Atomic USDC units (6 decimals)."},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}}}},"extensions":{"type":"object","description":"Includes `bazaar` discovery metadata."}}}},"securitySchemes":{"SkyfireToken":{"type":"apiKey","in":"header","name":"kyapay-token","description":"Skyfire KYAPay token (https://app.skyfire.xyz). Accepted types: `kya` (identity only: free 2-chain sample, never charged), `pay` and `kya-pay` (full data; charged per successful call after the response is produced). The `hid`, `apd` and `aid` identity claims are optional.","x-skyfire-token-type":["kya","pay","kya-pay"]}}},"tags":[{"name":"Gas Oracle","description":"Paid endpoints. Served from cache in a few milliseconds."},{"name":"Meta","description":"Free service information."}],"servers":[{"url":"https://gas.rdxdata.xyz"}],"x-skyfire-token-type":["kya","pay","kya-pay"],"x-agentcash-guidance":{"llmsTxtUrl":"https://gas.rdxdata.xyz/llms.txt"},"x-x402":{"x402Version":2,"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","payTo":"0xA0f3bab8f298766610005F2BCcDef6964b40b5e6","price":{"currency":"USD","amount":"0.01","atomic":"10000"},"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402","headers":{"paymentRequired":"PAYMENT-REQUIRED","paymentSignature":"PAYMENT-SIGNATURE","paymentResponse":"PAYMENT-RESPONSE"},"resources":["https://gas.rdxdata.xyz/v1/gas/oracle","https://gas.rdxdata.xyz/v1/gas/chain/{chain_name}"],"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","headers":{"Accept":"application/json"}},"output":{"type":"json","example":{"status":"ok","generated_at":"2026-11-24T05:50:00Z","model_used":"rdx-gas-oracle-v2","optimal_execution_chain":"Base","chains":{"Ethereum":{"gas_price_gwei_or_lamports":1.82,"unit":"gwei","est_erc20_transfer_usd":0.473,"block_congestion_pct":52.4,"mev_frontrun_risk":"MEDIUM","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:58Z"},"Base":{"gas_price_gwei_or_lamports":0.006,"unit":"gwei","est_erc20_transfer_usd":0.0016,"block_congestion_pct":31.7,"mev_frontrun_risk":"LOW","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:58Z"},"Arbitrum":{"gas_price_gwei_or_lamports":0.02,"unit":"gwei","est_erc20_transfer_usd":0.0052,"block_congestion_pct":0.05,"mev_frontrun_risk":"LOW","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:59Z"},"Optimism":{"gas_price_gwei_or_lamports":0.005,"unit":"gwei","est_erc20_transfer_usd":0.0013,"block_congestion_pct":24.9,"mev_frontrun_risk":"LOW","next_15m_trend":"FALLING","data_status":"live","observed_at":"2026-11-24T05:49:58Z"},"Solana":{"gas_price_gwei_or_lamports":12500.0,"unit":"microlamports_per_cu","est_erc20_transfer_usd":0.0011,"block_congestion_pct":63.3,"mev_frontrun_risk":"MEDIUM","next_15m_trend":"RISING","data_status":"live","observed_at":"2026-11-24T05:49:59Z"},"Polygon":{"gas_price_gwei_or_lamports":30.5,"unit":"gwei","est_erc20_transfer_usd":0.0004,"block_congestion_pct":38.2,"mev_frontrun_risk":"MEDIUM","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:59Z"},"BNBChain":{"gas_price_gwei_or_lamports":0.05,"unit":"gwei","est_erc20_transfer_usd":0.0029,"block_congestion_pct":22.6,"mev_frontrun_risk":"HIGH","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:59Z"},"Bitcoin":{"gas_price_gwei_or_lamports":3.0,"unit":"sat_per_vb","est_erc20_transfer_usd":0.423,"block_congestion_pct":20.0,"mev_frontrun_risk":"LOW","next_15m_trend":"FALLING","data_status":"live","observed_at":"2026-11-24T05:49:59Z"},"Tron":{"gas_price_gwei_or_lamports":100.0,"unit":"sun_per_energy","est_erc20_transfer_usd":1.95,"block_congestion_pct":null,"mev_frontrun_risk":"MEDIUM","next_15m_trend":"STABLE","data_status":"live","observed_at":"2026-11-24T05:49:59Z"}},"routing_recommendation":"Execute on Optimism or Base now: both cost under $0.002 per standard transfer with LOW MEV risk and stable-to-falling fees.","reference_prices":{"eth_usd":4000.0,"sol_usd":250.0,"native_usd":{"ETH":4000.0,"SOL":250.0,"POL":0.2,"BNB":900.0,"BTC":100000.0,"TRX":0.3},"estimated":[],"source":"defillama"},"degraded_chains":[]}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["GET","HEAD","DELETE"]},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"required":["type","method"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}},"required":["type"]}},"required":["input"]}}}}}