Gas price and gas fee API for Base, Ethereum, Optimism, Arbitrum and Polygon
Gas price and gas fee API for Base, Ethereum, Optimism, Arbitrum and Polygon: current gas price in gwei, next base fee, slow/standard/fast EIP-1559 maxFeePerGas + priority fee, congestion and trend, and the USD cost of a native transfer, USDC payment, swap or approve before you send. Pass chain=base or network=base. Payment settles only after a successful (2xx) response; input errors are never charged.
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://beggar-bot-demand.beggarbot.workers.dev/v1/gas/price
| Category | Market data |
|---|---|
| Provider host | beggar-bot-demand.beggarbot.workers.dev |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"chain": "base"
},
"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",
"HEAD",
"DELETE"
],
"type": "string"
},
"queryParams": {
"properties": {
"chain": {
"description": "base (default), optimism, ethereum, arbitrum, polygon, base-sepolia",
"type": "string"
},
"gas_limit": {
"description": "optional custom gas limit",
"type": "string"
},
"network": {
"description": "alias of chain, e.g. network=base",
"type": "string"
},
"tx_bytes": {
"description": "optional tx size for L1 fee",
"type": "string"
}
},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"cost_estimates": {
"type": "object"
},
"fast": {
"type": "object"
},
"live": {
"type": "boolean"
},
"native_usd": {
"type": "number"
},
"next_base_fee_gwei": {
"type": "number"
},
"standard": {
"type": "object"
}
},
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}