ToolAssay

Base gas oracle / gas price API for AI agents and bots — get the gas price for a

Base gas oracle / gas price API for AI agents and bots — get the gas price for a transaction on Base in one x402 call. Real-time slow/standard/fast EIP-1559 fee tiers from a live eth_feeHistory call, returned as DROP-IN maxFeePerGas + maxPriorityFeePerGas in wei — plug straight into a viem/ethers transaction, no gwei conversion. Plus base fee, head block, and network fullness. Call it before every Base tx to set a fair fee or wait out congestion.

Answeringour last check, 2026-09-24
1 of 1checks answered this week
945 msmedian answer time
$0.001listed price per call
$0.001price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

GET https://gas.apitoll.cloud/v1/base/gas

CategoryMarket data
Provider hostgas.apitoll.cloud
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days19 from 16 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-09-24 valid payment request 402$0.001 945 ms

Example input (from the provider)

{
  "method": "GET",
  "queryParams": {
    "blocks": 20
  },
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "blocks": {
              "description": "Recent blocks to sample for percentile reward (1..50, clamped). Wider = smoother tiers, narrower = more reactive.",
              "maximum": 50,
              "minimum": 1,
              "type": "integer"
            }
          },
          "required": [
            "blocks"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "base_fee_gwei": {
              "description": "EIP-1559 base fee for the next block (gwei, human-readable).",
              "type": "number"
            },
            "base_fee_wei": {
              "description": "Base fee in wei (exact, BigInt-ready decimal string).",
              "type": "string"
            },
            "block_number": {
              "description": "Latest sampled block number (the head).",
              "type": "integer"
            },
            "network": {
              "description": "Network identifier (Base mainnet or testnet)",
              "enum": [
                "base-mainnet",
                "base-sepolia"
              ],
              "type": "string"
            },
            "stats": {
              "description": "Sampling metadata: block count and median fullness.",
              "properties": {
                "blocks_sampled": {
                  "description": "Number of recent blocks sampled for percentile calculation.",
                  "type": "integer"
                },
                "median_fullness_pct": {
                  "description": "Median (gasUsed / gasLimit) \u00d7 100 across sampled blocks. 100 = full, 0 = empty.",
                  "type": "number"
                },
                "ts": {
                  "description": "ISO 8601 timestamp when snapshot was assembled.",
                  "format": "date-time",
                  "type": "string"
                }
              },
              "required": [
                "blocks_sampled",
                "median_fullness_pct",
                "ts"
              ],
              "type": "object"
            },
            "tiers": {
              "description": "Three fee tiers (slow p10, standard p50, fast p90). Each carries human gwei (max_fee_gwei/max_priority_gwei) AND DROP-IN wei (maxFeePerGas/maxPriorityFeePerGas, BigInt-ready) to plug straight into a viem/ethers tx.",
              "properties": {
                "fast": {
                  "properties": {
                    "maxFeePerGas": {
                      "description": "DROP-IN: exact maxFeePerGas in wei. tx.maxFeePerGas = BigInt(this).",
                      "type": "string"
                    },
                    "maxPriorityFeePerGas": {
                      "description": "DROP-IN: exact maxPriorityFeePerGas in wei (BigInt-ready).",
                      "type": "string"
                    },
                    "max_fee_gwei": {
                      "description": "maxFeePerGas in gwei (human-readable).",
                      "type": "number"
                    },
                    "max_priority_gwei": {
                      "description": "maxPriorityFeePerGas (tip) in gwei (human-readable).",
                      "type": "number"
                    }
                  },
                  "required": [
                    "max_fee_gwei",
                    "max_priority_gwei",
                    "maxFeePerGas",
                    "maxPriorityFeePerGas"
                  ],
                  "type": "object"
                },
                "slow": {
                  "properties": {
                    "maxFeePerGas": {
                      "description": "DROP-IN: exact maxFeePerGas in wei. tx.maxFeePerGas = BigInt(this).",
                      "type": "string"
                    },
                    "maxPriorityFeePerGas": {
                      "description": "DROP-IN: exact maxPriorityFeePerGas in wei (BigInt-ready).",
                      "type": "string"
                    },
                    "max_fee_gwei": {
                      "description": "maxFeePerGas in gwei (human-readable).",
                      "type": "number"
                    },
                    "max_priority_gwei": {
                      "description": "maxPriorityFeePerGas (tip) in gwei (human-readable).",
                      "type": "number"
                    }
                  },
                  "required": [
                    "max_fee_gwei",
                    "max_priority_gwei",
                    "maxFeePerGas",
                    "maxPriorityFeePerGas"
                  ],
                  "type": "object"
                },
                "standard": {
                  "properties": {
                    "maxFeePerGas": {
                      "description": "DROP-IN: exact maxFeePerGas in wei. tx.maxFeePerGas = BigInt(this).",
                      "type": "string"
                    },
                    "maxPriorityFeePerGas": {
                      "description": "DROP-IN: exact maxPriorityFeePerGas in wei (BigInt-ready).",
                      "type": "string"
                    },
                    "max_fee_gwei": {
                      "description": "maxFeePerGas in gwei (human-readable).",
                      "type": "number"
                    },
                    "max_priority_gwei": {
                      "description": "maxPriorityFeePerGas (tip) in gwei (human-readabl

This page as JSON