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