Use when you need a gas price or fee estimate before a transaction on Ethereum,
Use when you need a gas price or fee estimate before a transaction on Ethereum, Base or Solana, or to compare gas fees across chains. Do not use for gas units of a given transaction, gas history or chains beyond Ethereum, Base and Solana. Returns JSON with live gas fees for Ethereum and Base (base fee, slow, standard and fast EIP-1559 priority and max fees in gwei, transfer cost) and Solana priority fees, in one call for 0.003 USDC per call. Typical response time 1500 ms (p95). Category: Data.
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
POST https://x402-gateway.blackwoodstate8.workers.dev/v1/gas-fees
| Category | Market data |
|---|---|
| Provider host | x402-gateway.blackwoodstate8.workers.dev |
| Networks | eip155:8453 |
| Payment schemes | exact, upto |
| 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)
{
"body": {},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"chains": {
"description": "Chains to read (ethereum, base and solana when omitted), e.g. [\"base\", \"ethereum\"]",
"items": {
"enum": [
"ethereum",
"base",
"solana"
],
"type": "string"
},
"maxItems": 3,
"minItems": 1,
"type": "array"
}
},
"required": [],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"additionalProperties": false,
"properties": {
"base": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"baseFeeGwei": {
"type": "number"
},
"blockNumber": {
"type": "number"
},
"chainId": {
"type": "number"
},
"gasPriceGwei": {
"type": "number"
},
"maxFeeGwei": {
"additionalProperties": false,
"properties": {
"fast": {
"type": "number"
},
"slow": {
"type": "number"
},
"standard": {
"type": "number"
}
},
"required": [
"slow",
"standard",
"fast"
],
"type": "object"
},
"nextBaseFeeGwei": {
"type": "number"
},
"priorityFeeGwei": {
"additionalProperties": false,
"properties": {
"fast": {
"type": "number"
},
"slow": {
"type": "number"
},
"standard": {
"type": "number"
}
},
"required": [
"slow",
"standard",
"fast"
],
"type": "object"
},
"transferCostEth": {
"additionalProperties": false,
"properties": {
"fast": {
"type": "number"
},
"slow": {
"type": "number"
},
"standard": {
"type": "number"
}
},
"required": [
"slow",
"standard",
"fast"
],
"type": "object"
}
},
"required": [
"chainId",
"blockNumber",
"baseFeeGwei",
"nextBaseFeeGwei",
"gasPriceGwei",
"priorityFeeGwei",
"maxFeeGwei",
"transferCostEth"
],
"type": "object"
},
{
"type": "null"
}
]
},
"ethereum": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"baseFeeGwei": {
"type": "number"
},
"blockNumber": {
"type": "number"
},
"chainId": {
"type": "number"
},
"gasPriceGwei": {
"type": "number"
},
"maxFeeGwei": {
"additionalProperties": false,
"properties": {
"fast": {
"type": "number"
},
"slow": {
"type": "number"
},
"standard": {
"type": "number"
}
},
"required": [
"slow",
"standard",
"fast"
],
"type": "object"
},
"nextBaseFeeGwei": {
"type": "number"
},
"priorityFeeGwei": {
"additionalProperties": false