Get Gas Fee
Returns the current dynamic gas fee for the active blockchain network. Values are calculated using FeeHistory with 25/50/75 percentiles and returned in the chain's native currency (e.g., POL for Polygon, ETH for Ethereum).
Request
GET /v1/blockchain/gas-fee
Headers
| Name | Description |
|---|---|
Authorization | Required. Bearer token for authentication |
Example
curl --request GET \
--url '{{baseUrl}}/v1/blockchain/gas-fee' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'
Response
{
"chain_id": 137,
"max_priority_fee": 0.000000030,
"max_fee": 0.000000034,
"native_currency_symbol": "POL"
}
Response Fields
| Field | Type | Description |
|---|---|---|
chain_id | integer | The chain ID of the active network (e.g., 1 = Ethereum, 137 = Polygon) |
max_priority_fee | number | Maximum priority fee (tip) per gas unit, in native currency |
max_fee | number | Maximum total fee per gas unit (base fee + priority fee + buffer), in native currency |
native_currency_symbol | string | Symbol of the chain's native currency (e.g., POL, ETH) |
Supported Chains
| Chain ID | Network | Native Currency |
|---|---|---|
| 1 | Ethereum Mainnet | ETH |
| 137 | Polygon Mainnet | POL |
| 17000 | Holesky Testnet | ETH |
Status Codes
| Status Code | Description |
|---|---|
| 200 | Success |
| 401 | Unauthorized - Invalid or missing authentication token |
| 500 | Internal Server Error - Failed to fetch gas fee from the network |