Get Gas Price logo

Catalog action EVM Onchain

Fetch current gas prices for an EVM chain from the b3 gas oracle. Returns legacy tiers (low / standard / fast / instant) and, when available, EIP-1559 base fee + priority/max-fee tiers and historical analysis (level, percentile, vs1h/vs4h/vs24h ratios). Values are in gwei. Ideal for: gas-gated batching, cost-aware send timing, gas dashboards.

At a Glance

FieldValue
Action IDget-gas-price
CategoryEVM Onchain
ConnectorNot required
Requires gasNo
Funds movementNone declared
Tagsevm, gas, oracle, read

Payload Schema

FieldTypeRequiredDescription
chainIdnumberYesEVM chain ID. Supported chains depend on the gas oracle's coverage; unsupported IDs return UNSUPPORTED_CHAIN.

Result Schema

FieldTypeRequiredDescription
chainIdnumberYes-
chainNamestringYesHuman-readable chain name (e.g., 'Ethereum')
blockNumbernumberYesBlock number the snapshot was taken at
timestampstringYesISO timestamp of the snapshot
sourcestringYesUnderlying data source string returned by the oracle. May vary across chains and over time.
gasPriceobjectYesLegacy gas-price tiers in gwei. Use these for non-EIP-1559 chains.
eip1559objectNoEIP-1559 base fee + tip tiers (gwei). Omitted on chains without EIP-1559 (e.g., BSC).
analysisobjectNoHistorical context for the current gas price. Use this for relative thresholds (e.g., 'send when gas is 30% below 24h median').
cachedbooleanNoTrue if the response was served from cache
stalebooleanNoTrue if the cached value has exceeded its freshness window
cacheAgenumberNoAge of the cached value, in seconds

Examples

json
{ "type": "get-gas-price", "payload": { "chainId": 8453 }, "children": []}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.

Ask a question... ⌘I