Chains API

Current gas prices and confirmation time

Safe/Propose/Fast gas-price tiers for a chain and (Ethereum only) seconds each tier takes to confirm; on ARC and RHC the propose price and base fee only.

GET/api/external/chain-analysis/gas-conditions/{chain}

What it returns

Current gas-price tiers (Safe/Propose/Fast, all Gwei DECIMAL STRINGS — never pre-rounded to a JS number) and, on Ethereum mainnet only, an estimate of how many seconds a transaction priced at each tier takes to confirm. estimatedConfirmationSeconds is null on every other chain this endpoint serves: measured live, the source answers a named "action does not exist" error there rather than a number, which is a real per-chain restriction rather than a temporary gap. On ARC and RHC, and whenever the three tiers cannot be read, the answer carries the base fee and proposeGasPriceGwei (the base fee plus the chain's own suggested tip); safeGasPriceGwei, fastGasPriceGwei and the confirmation estimates are null, and so is recentGasUsedRatio outside ETH. Every field is null when nothing could be established, never 0, which here would claim a real, measured gas price of zero.

Chains

  • BNB Chain BNB
  • Ethereum ETH
  • Stable STABLE
  • Base BASE
  • Robinhood Chain RHC
  • Arc ARC

Request

Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.

curl -H "x-dex-data-key: $DEXDATA_API_KEY" \
  "https://api.dexdata.io/api/external/chain-analysis/gas-conditions/BNB"
Parameters
ParameterDescription
chain

path · string · required

ETH, BNB, BASE, STABLE, ARC, RHC; every other chain returns 400. estimatedConfirmationSeconds is additionally ETH-only — see the response field description.

Response fields

A JSON response. Every field is always present; null means the value could not be established, never zero.

Response fields of Current gas prices and confirmation time
FieldTypeDescription
lastBlockinteger | nullThe block this reading was computed from.
safeGasPriceGweistring | nullGwei, decimal string — never Number()-ed.
proposeGasPriceGweistring | null
fastGasPriceGweistring | null
suggestedBaseFeeGweistring | nullEIP-1559 base fee suggested for the NEXT block, Gwei, decimal string.
recentGasUsedRationumber[] | nullUp to 5 trailing per-block gas-used ratios (0-1), most recent last.
estimatedConfirmationSecondsobjectEstimated seconds to confirmation at each tier. ETH-ONLY — null on every other chain this endpoint serves. See the endpoint description.
estimatedConfirmationSeconds.safenumber | null
estimatedConfirmationSeconds.proposenumber | null
estimatedConfirmationSeconds.fastnumber | null

Start building with DexData today

Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.

Get a free API key