v1
latestOpenAPI 3.0.32026-07-2639188178.2 KBgas
Get list of all available gas prices
This endpoint provides real-time information on the current gas prices across all supported blockchain networks. Gas prices play a crucial role in the speed and cost of executing transactions on a blockchain, and fluctuate frequently based on network demand and usage. By using this endpoint, developers can stay up-to-date with the latest gas prices and adjust their application's transaction parameters accordingly to ensure optimal speed and cost efficiency.
get/v1/gas-prices/
Query parameters
filter[chain_ids]string[]
Return only gas prices from specified chains (comma-separated list). You can find available chain ids in chain endpoints.
[ "polygon" ]
filter[gas_types]Type2[]
Return only gas prices with specified gas-type (comma-separated list).
[ "classic" ]
Response
List of gas prices
Example response
{
"data": [
{
"type": "gas-prices",
"id": "gas-polygon-classic",
"attributes": {
"updated_at": "2023-02-28T19:24:39.000Z",
"gas_type": "classic",
"info": {
"slow": 48000000000,
"standard": 48000000000,
"fast": 51000000000
}
},
"relationships": {
"chain": {
"links": {
"related": "https://api.zerion.io/v1/chains/polygon"
},
"data": {
"type": "chains",
"id": "polygon"
}
}
}
}
],
"links": {
"self": "https://api.zerion.io/v1/gas-prices"
}
}