chain
Get Gas Fees
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)
get/defi/v1/chain/getgasfees
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/chain/getgasfees
- AuthAPI key in header X-API-Key
Query parameters
chainId'1'
The unique ID to direct queries or transactions to the correct blockchain. Find more here.
Example:1
chainSymbolstring
The abbreviated chain name for queries or transactions.
Example:ETH
addressstring required
Public address of the user.
Example:0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402
startBlockstring
Starting block of the range. By default, it is the latest block minus 100.
Example:100000
endBlockstring
Last block of the range. By default, it is the latest block.
Example:100010
Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"totalFeesSpent": "0",
"totalCurrentPrice": "0",
"totalAdjustedPrice": "0",
"transactionList": {
"0x02c33d16d164f1e0bb653e913bb7ff99bea9aaaa68ea505a4c87a4ad1174f245": "21000",
"0x09d0f07f6623e4819e5f428f766d74e51718e044421ecd9edeca8fb47e949f45": "22000"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.