← All 32 APIs · Home · Swagger / OpenAPI · x402 Manifest
$0.005 USDC / callBlockchain/DataBase & Polygon x402 v2

GPU-x402 Multi-Chain Gas & Fee Oracle (ETH/Base/Arb/OP/Pol/BTC)

Sub-second live gas gwei, Bitcoin mempool sat/vB, USD transfer/swap cost estimates & cheapest L2 recommendation ($0.005 USDC).

Endpoint & Settlement Specs

x402 Endpoint: POST https://agentx402.fyi/x402/chain/gas
Remote MCP: POST https://agentx402.fyi/mcp (Streamable HTTP JSON-RPC 2.0)
PayTo Wallet (USDC): 0x71256BBb403B88A347E67b7ADad89ed28b4e16d6 (Gasless via Coinbase CDP Facilitator)

Quickstart (cURL — Returns x402 v2 Invoice + Bazaar Schema)

curl -i -X POST https://agentx402.fyi/x402/chain/gas \
  -H 'Content-Type: application/json' \
  -d '{"chains": ["ethereum", "base", "arbitrum", "optimism", "polygon", "bitcoin"]}'

TypeScript Autonomous Agent (@x402/fetch)

import { wrapFetchWithPayment } from "@x402/fetch";
const fetchWithPay = wrapFetchWithPayment(fetch, walletClient);
const res = await fetchWithPay("https://agentx402.fyi/x402/chain/gas", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"chains": ["ethereum", "base", "arbitrum", "optimism", "polygon", "bitcoin"]})
});
console.log(await res.json());

Example JSON Input

{
  "chains": [
    "ethereum",
    "base",
    "arbitrum",
    "optimism",
    "polygon",
    "bitcoin"
  ]
}

Example JSON Output

{
  "cheapest_evm_chain": "optimism",
  "cheapest_erc20_transfer_usd": 0.0002,
  "native_prices_usd": {
    "ETH": 3100.0,
    "POL": 0.45,
    "BTC": 95000.0
  },
  "chains": {
    "base": {
      "gas_price_gwei": 0.006,
      "priority_fee_gwei": 0.001,
      "estimated_usd": {
        "native_transfer_21k": 0.0004,
        "erc20_transfer_65k": 0.0012,
        "dex_swap_150k": 0.0028
      },
      "congestion_level": "low"
    },
    "bitcoin": {
      "fastest_sat_vb": 3,
      "half_hour_sat_vb": 3,
      "hour_sat_vb": 1,
      "estimated_usd": {
        "segwit_tx_140vb_fast": 0.4
      }
    }
  }
}