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).

This endpoint is public (no authentication required) when reached through the gateway.

Request

GET /v2/blockchain/gas-fee

Query Parameters

NameTypeDescription
network_idintegerOptional. EVM chain id. Defaults to the server-configured network when omitted.

Example

curl --request GET \
--url '{{baseUrl}}/v2/blockchain/gas-fee?network_id=137'

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
400Bad Request - Invalid network_id
500Internal Server Error - Failed to fetch gas fee from the network