---
title: "Get Gas Fees"
method: GET
path: "/defi/v1/chain/getgasfees"
tags: ["chain"]
---

# Get Gas Fees

`GET /defi/v1/chain/getgasfees`

## Request

- Base URL: `https://svc.blockdaemon.com`
- URL: `https://svc.blockdaemon.com/defi/v1/chain/getgasfees`
- Auth: API key in header `X-API-Key`

Retrieves detailed gas fee metrics for a specified user address over a defined block range, including total fees spent and current gas prices.

> 💡 
**Compute Unit Value:** `70` (Fixed)

## Query parameters

- `chainId` '1': The unique ID to direct queries or transactions to the correct blockchain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-chains).
- `chainSymbol` string: The abbreviated chain name for queries or transactions.
- `address` string, required: Public address of the user.
- `startBlock` string: Starting block of the range. By default, it is the latest block minus 100.
- `endBlock` string: Last block of the range. By default, it is the latest block.

## Response `200`

Successful response

- object
  - `status` integer
  - `msg` string
  - `data` object

---

[API](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api.md) - [All operations](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/revisions/ec053b7c8041?raw)
