Retrieve the current gas price for Ethereum or Base for transaction planning
Retrieve the current gas price for Ethereum or Base for transaction planning. Returns wei and gwei from a single `eth_gasPrice` JSON-RPC call; live network result may change between calls and does not estimate total transaction cost, submit a transaction, or provide execution authorization. USE WHEN: an agent needs the current EVM gas price before estimating fees or preparing a transaction. DO NOT USE WHEN: the agent needs to inspect an existing transaction by hash (use
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://relay.straelo.com/evm-gas-price-lookup
| Category | Code and developer |
|---|---|
| Provider host | relay.straelo.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 2 from 2 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": {
"chain": "base"
},
"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": {
"chain": {
"description": "EVM network to query for the current gas price.",
"enum": [
"ethereum",
"base"
],
"type": "string"
}
},
"required": [
"chain"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"chain": {
"description": "EVM network queried.",
"type": "string"
},
"gas_price_gwei": {
"description": "Current gas price in gwei.",
"type": "string"
},
"gas_price_wei": {
"description": "Current gas price in wei (atomic units).",
"type": "string"
},
"observed_at": {
"description": "UTC observation time.",
"format": "date-time",
"type": "string"
}
},
"required": [
"chain",
"gas_price_wei",
"gas_price_gwei",
"observed_at"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}