{
  "x402Version": 2,
  "id": 26535,
  "slug": "26535",
  "resource": "https://gas.apitoll.cloud/v1/base/gas",
  "description": "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.",
  "type": "http",
  "serviceName": "ApiToll Base Gas Oracle",
  "resourceType": "Utilities",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xcc69d619E6053F88A4845066518f465bD06Fc96c",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "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) × 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-readable).",
                    "type": "number"
                  }
                },
                "required": [
                  "max_fee_gwei",
                  "max_priority_gwei",
                  "maxFeePerGas",
                  "maxPriorityFeePerGas"
                ],
                "type": "object"
              }
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "blocks": 20
          },
          "type": "http"
        },
        "output": {
          "example": {
            "base_fee_gwei": 0.0042,
            "base_fee_wei": "4200000",
            "block_number": 16842103,
            "network": "base-mainnet",
            "stats": {
              "blocks_sampled": 20,
              "median_fullness_pct": 31.5,
              "ts": "2026-05-28T15:42:30.000Z"
            },
            "tiers": {
              "fast": {
                "maxFeePerGas": "16300000",
                "maxPriorityFeePerGas": "10000000",
                "max_fee_gwei": 0.0163,
                "max_priority_gwei": 0.01
              },
              "slow": {
                "maxFeePerGas": "8300000",
                "maxPriorityFeePerGas": "2000000",
                "max_fee_gwei": 0.0083,
                "max_priority_gwei": 0.002
              },
              "standard": {
                "maxFeePerGas": "10300000",
                "maxPriorityFeePerGas": "4000000",
                "max_fee_gwei": 0.0103,
                "max_priority_gwei": 0.004
              }
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$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) × 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-readable).",
                            "type": "number"
                          }
                        },
                        "required": [
                          "max_fee_gwei",
                          "max_priority_gwei",
                          "maxFeePerGas",
                          "maxPriorityFeePerGas"
                        ],
                        "type": "object"
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "base",
    "gas",
    "gas-oracle",
    "gas-price",
    "transaction-fees",
    "bazaar"
  ],
  "sourceHost": "gas.apitoll.cloud",
  "lastUpdated": "2026-10-13T13:41:15.84Z",
  "quality": {
    "calls30d": 15,
    "uniquePayers30d": 15,
    "lastCalledAt": "2026-10-13T13:41:15.314Z"
  },
  "metadata": {
    "serviceName": "ApiToll Base Gas Oracle",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "blocks": 20
            },
            "type": "http"
          },
          "output": {
            "example": {
              "base_fee_gwei": 0.0042,
              "base_fee_wei": "4200000",
              "block_number": 16842103,
              "network": "base-mainnet",
              "stats": {
                "blocks_sampled": 20,
                "median_fullness_pct": 31.5,
                "ts": "2026-05-28T15:42:30.000Z"
              },
              "tiers": {
                "fast": {
                  "maxFeePerGas": "16300000",
                  "maxPriorityFeePerGas": "10000000",
                  "max_fee_gwei": 0.0163,
                  "max_priority_gwei": 0.01
                },
                "slow": {
                  "maxFeePerGas": "8300000",
                  "maxPriorityFeePerGas": "2000000",
                  "max_fee_gwei": 0.0083,
                  "max_priority_gwei": 0.002
                },
                "standard": {
                  "maxFeePerGas": "10300000",
                  "maxPriorityFeePerGas": "4000000",
                  "max_fee_gwei": 0.0103,
                  "max_priority_gwei": 0.004
                }
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$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) × 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-readable).",
                              "type": "number"
                            }
                          },
                          "required": [
                            "max_fee_gwei",
                            "max_priority_gwei",
                            "maxFeePerGas",
                            "maxPriorityFeePerGas"
                          ],
                          "type": "object"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "gas.apitoll.cloud",
    "manifest_name": "gas.apitoll.cloud",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "base_fee_gwei": 0,
      "base_fee_wei": "string",
      "block_number": 0,
      "network": "base-mainnet",
      "stats": {
        "blocks_sampled": 0,
        "median_fullness_pct": 0,
        "ts": "2026-01-01T00:00:00Z"
      },
      "tiers": {
        "fast": {
          "maxFeePerGas": "string",
          "maxPriorityFeePerGas": "string",
          "max_fee_gwei": 0,
          "max_priority_gwei": 0
        },
        "slow": {
          "maxFeePerGas": "string",
          "maxPriorityFeePerGas": "string",
          "max_fee_gwei": 0,
          "max_priority_gwei": 0
        },
        "standard": {
          "maxFeePerGas": "string",
          "maxPriorityFeePerGas": "string",
          "max_fee_gwei": 0,
          "max_priority_gwei": 0
        }
      }
    },
    "type": "string"
  }
}