Use when an agent is about to send an on-chain transaction and must pick a fee

$0.001 per call20 free calls/day via MCP

Use when an agent is about to send an on-chain transaction and must pick a fee. Live slow/standard/fast priority fees, next base fee (from the last blocks) and the USD cost of a transfer at each speed, on Ethereum, Base, Arbitrum, Optimism, Polygon, BSC and Avalanche (one chain or all). Redundant public RPCs. Under 2 s.

gasgas-pricefeeseip-1559ethereumbasetransactionsevm

Call it from an AI agent (MCP)

Add the remote MCP server https://www.aypiai.online/mcp (Streamable HTTP, no auth) to Claude, Cursor, ChatGPT or any MCP client, then call the tool gas_price:

{
  "name": "gas_price",
  "arguments": {
    "chain": "base"
  }
}

Call it over HTTP

curl -X POST https://www.aypiai.online/api/gas-price \
  -H "Content-Type: application/json" \
  -H "X-Access-Key: YOUR_CREDIT_KEY" \
  -d '{"chain":"base"}'

No key? Without one the endpoint answers 402 Payment Required with an x402 PAYMENT-REQUIRED header: any x402 client (USDC on Base, gasless) pays $0.001 and retries automatically. Works with any x402 wallet: Base MCP, Coinbase AgentKit, x402-fetch / x402-axios, Cloudflare Agents. Or buy card credits at /credits (from $5, valid on all tools). Failed calls are never charged.

Input

{
  "type": "object",
  "properties": {
    "chain": {
      "type": "string",
      "description": "ethereum, base, arbitrum, optimism, polygon, bsc, avalanche, or all (default)"
    }
  },
  "required": []
}

Example output

{
  "chains": [
    {
      "chain": "ethereum",
      "block": 22000000,
      "nextBaseFeeGwei": 0.61,
      "slow": {
        "gwei": 0.62,
        "transferUsd": 0.02
      },
      "standard": {
        "gwei": 0.65,
        "transferUsd": 0.021
      },
      "fast": {
        "gwei": 0.9,
        "transferUsd": 0.029
      }
    }
  ]
}

Related tools

Use when an agent needs crypto prices ($0.002) · Use when an agent sees an ENS name (vitalik.eth) and needs the wallet address before sending funds, or has an address and wants its name and profile ($0.002) · Use when an agent sends, receives or monitors Bitcoin ($0.002) · Use when an agent needs what an EVM wallet holds before paying, trading or reporting ($0.002) · Use when an agent sent or received an on-chain payment and must confirm it ($0.002)

Rever: website intelligence for AI agents. MCP server: https://www.aypiai.online/mcp · x402 catalog: /.well-known/x402