# Gas prices and transaction types per day

[Open Gas & Blobs →](https://tracefast.xyz/analytics/gas)

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
```

| Parameter | In | Type | Notes |
|---|---|---|---|
| `from` | query | string, optional | The first UTC date, `YYYY-MM-DD`. |
| `to` | query | string, optional | The last UTC date, `YYYY-MM-DD`. Default: today. |

**Access** — an [API key](/api/authentication) on the **Enriched Data** plan or higher ([plans](/api/authentication#plans)), or no key at all: pay per call with [x402](/api/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](/api/mcp-server). **Stable** — see [stability](/api/conventions#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.

```json
{
  "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`

| Field | Meaning |
|---|---|
| `chainId` | Chain id. `1` is Ethereum mainnet. |
| `days` | One entry per day of the window, oldest first. |
| `from` | First day of the window, UTC date `YYYY-MM-DD`, included. |
| `to` | Last day of the window, UTC date `YYYY-MM-DD`, included. |

### `data.days[]`

| Field | Meaning |
|---|---|
| `accessList` | Transactions by type: access list (EIP-2930). |
| `blob` | Transactions by type: blob (EIP-4844). |
| `day` | The UTC day, `YYYY-MM-DD`. |
| `eip1559` | Transactions by type: EIP-1559. |
| `gasPriceAvgWei` | Average effective gas price paid, in wei, as a decimal string. Absent where it is not available. |
| `gasPriceMedianWei` | Median effective gas price paid, in wei, as a decimal string. Absent where it is not available. |
| `gasPriceP10Wei` | 10th percentile of the effective gas price paid, in wei, as a decimal string. Absent where it is not available. |
| `gasPriceP90Wei` | 90th percentile of the effective gas price paid, in wei, as a decimal string. Absent where it is not available. |
| `legacy` | Transactions by type: legacy. |
| `priorityFeeAvgWei` | Average priority fee (tip) paid per gas, in wei, as a decimal string. Absent where it is not available. |
| `priorityFeeMedianWei` | Median priority fee (tip) paid per gas, in wei, as a decimal string. Absent where it is not available. |
| `provisional` | `true` for a day the source is still counting or may still revise. |
| `setCode` | Transactions by type: set-code (EIP-7702). |
| `total` | All transactions of the day. |

`meta` is the same envelope on every method — see [conventions](/api/conventions#meta).

## Errors

| Status | When |
|---|---|
| 400 | `bad_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 |
| 404 | `chain_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](/api/conventions#errors) and [API keys](/api/authentication#when-a-key-is-refused).

## Related pages

* [Network per day](/api/network-daily)
* [Blobs per day](/api/network-blobs)
* [New accounts per day](/api/network-new-accounts)
* [DEX volume per day](/api/network-dex-volume)
* [All API methods](/api/methods) — every method on one page
* [Conventions](/api/conventions) — requests, responses, errors and pagination
