Use when an agent must price, time or route a transaction
Use when an agent must price, time or route a transaction. Input: optional chain (base default, ethereum, arbitrum, monad, all). Output: JSON base fee, priority tiers (last 20 blocks), suggested maxFeePerGas, block fullness, typical cost of transfer, approve, DEX swap, mint, deploy in gas token (ETH, MON) and USD (Base adds L1 data fee); chain=all adds a compare table and the cheapest chain per action by USD. Example: ?chain=all
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://1gateway.dev/v1/onchain/gas
| Category | Market data |
|---|---|
| Provider host | 1gateway.dev |
| Networks | eip155:137, eip155:143, eip155:42161, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 3 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": "all"
},
"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": {
"additionalProperties": false,
"properties": {
"chain": {
"description": "Chain (default base); all = the four compared. Bad value \u2192 400 before payment (not charged)",
"enum": [
"base",
"ethereum",
"arbitrum",
"monad",
"all"
],
"type": "string"
}
},
"required": [],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"additionalProperties": true,
"properties": {
"baseFeeGwei": {
"type": "number"
},
"block": {
"additionalProperties": true,
"properties": {
"gasUsedPct": {
"type": [
"number",
"null"
]
},
"number": {
"type": "integer"
},
"timestamp": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"chain": {
"type": "string"
},
"chainId": {
"type": "integer"
},
"nativeSymbol": {
"type": "string"
},
"nextBaseFeeGwei": {
"type": "number"
},
"priorityFeeGwei": {
"additionalProperties": true,
"properties": {
"fast": {
"type": "number"
},
"node": {
"type": "number"
},
"slow": {
"type": "number"
},
"standard": {
"type": "number"
}
},
"type": "object"
},
"suggested": {
"additionalProperties": true,
"properties": {
"fast": {
"additionalProperties": true,
"type": "object"
},
"slow": {
"additionalProperties": true,
"type": "object"
},
"standard": {
"additionalProperties": true,
"type": "object"
}
},
"type": "object"
}
},
"required": [
"chain"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}