Skip to main content

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

NameDescription
AuthorizationRequired. 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

FieldTypeDescription
chain_idintegerThe chain ID of the active network (e.g., 1 = Ethereum, 137 = Polygon)
max_priority_feenumberMaximum priority fee (tip) per gas unit, in native currency
max_feenumberMaximum total fee per gas unit (base fee + priority fee + buffer), in native currency
native_currency_symbolstringSymbol of the chain's native currency (e.g., POL, ETH)

Supported Chains

Chain IDNetworkNative Currency
1Ethereum MainnetETH
137Polygon MainnetPOL
17000Holesky TestnetETH

Status Codes

Status CodeDescription
200Success
401Unauthorized - Invalid or missing authentication token
500Internal Server Error - Failed to fetch gas fee from the network