Skip to content
TraceFast Docs

Gas prices and transaction types per day

Open Gas & Blobs →

Per UTC day, the effective gas price paid by transactions (average, median, 10th and 90th percentile, wei), the priority fee (average and median, wei) and how many transactions there were of each type — legacy, access list (EIP-2930), EIP-1559, blob (EIP-4844) and set-code (EIP-7702). UTC dates YYYY-MM-DD: the window is from to to, both included, at most 366 days; by default the 30 days up to today. A day the source is still counting is provisional: today, and yesterday until the source's first run after midnight. A day the source has no row for is absent.

GET https://tracefast.xyz/api/v1/chains/1/network/gas
ParameterInTypeNotes
fromquerystring, optionalThe first UTC date, YYYY-MM-DD.
toquerystring, optionalThe last UTC date, YYYY-MM-DD. Default: today.

Access — an API key on the Enriched Data plan or higher (plans), or no key at all: pay per call with x402 at the same path on https://mpp.tracefast.xyz/api/v1, at the price its 402 states. As a tool for AI agents: get_gas_daily on the MCP server. Stable — see stability.

chains/1 is a literal: other chain ids answer 404 chain_not_supported. An unknown query parameter is refused rather than ignored.

Response

200 application/json. Lists in the example are cut to two entries.

{
  "data": {
    "chainId": 1,
    "from": "2026-11-01",
    "to": "2026-11-02",
    "days": [
      {
        "day": "2026-11-01",
        "gasPriceAvgWei": "594973665",
        "gasPriceMedianWei": "60000000",
        "gasPriceP10Wei": "40278140",
        "gasPriceP90Wei": "2037704762",
        "priorityFeeAvgWei": "553004788",
        "priorityFeeMedianWei": "15281394",
        "legacy": 190962,
        "accessList": 529,
        "eip1559": 1431751,
        "blob": 12368,
        "setCode": 24487,
        "total": 1660097
      },
      {
        "day": "2026-11-02",
        "gasPriceAvgWei": "671547788",
        "gasPriceMedianWei": "199643193",
        "gasPriceP10Wei": "41657370",
        "gasPriceP90Wei": "2040074474",
        "priorityFeeAvgWei": "551833554",
        "priorityFeeMedianWei": "30012805",
        "legacy": 254887,
        "accessList": 797,
        "eip1559": 1589849,
        "blob": 14041,
        "setCode": 25332,
        "total": 1884906
      }
    ]
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918363155,
    "cached": false,
    "docs": "https://docs.tracefast.xyz/api/network-gas"
  }
}

data

FieldMeaning
chainIdChain id. 1 is Ethereum mainnet.
daysOne entry per day of the window, oldest first.
fromFirst day of the window, UTC date YYYY-MM-DD, included.
toLast day of the window, UTC date YYYY-MM-DD, included.

data.days[]

FieldMeaning
accessListTransactions by type: access list (EIP-2930).
blobTransactions by type: blob (EIP-4844).
dayThe UTC day, YYYY-MM-DD.
eip1559Transactions by type: EIP-1559.
gasPriceAvgWeiAverage effective gas price paid, in wei, as a decimal string. Absent where it is not available.
gasPriceMedianWeiMedian effective gas price paid, in wei, as a decimal string. Absent where it is not available.
gasPriceP10Wei10th percentile of the effective gas price paid, in wei, as a decimal string. Absent where it is not available.
gasPriceP90Wei90th percentile of the effective gas price paid, in wei, as a decimal string. Absent where it is not available.
legacyTransactions by type: legacy.
priorityFeeAvgWeiAverage priority fee (tip) paid per gas, in wei, as a decimal string. Absent where it is not available.
priorityFeeMedianWeiMedian priority fee (tip) paid per gas, in wei, as a decimal string. Absent where it is not available.
provisionaltrue for a day the source is still counting or may still revise.
setCodeTransactions by type: set-code (EIP-7702).
totalAll transactions of the day.

meta is the same envelope on every method — see conventions.

Errors

StatusWhen
400bad_request: a date not YYYY-MM-DD (date_invalid), from after to (date_window_inverted), a window over 366 days (date_window_out_of_range), an unknown query parameter
404chain_not_supported, or an unknown path

Malformed input, unknown parameters and the key check's 401/403/429/503 are the same for every method — see conventions and API keys.


Last updated 19 Nov 2026, 11:46 UTC · verified against TraceFast v1.0.332 · Markdown