Skip to main content

Gas

About

Gas API is used to get the information about gas or its analogues on different networks

Routes

GET /gas?network_id={network_id}

Returns information about gas for the specified network_id in the following format

{
"blockNumber": 12460874,
"prices": {
"safeLow": "42",
"average": "43",
"fast": "44",
"fastest": "45"
},
"additionalData": {
"baseFee": "155381"
}
}

Result fields

FieldTypeDescription
blockNumbernumberThe block at which the information about the gas was fetched
pricesobjectRecord of gas prices at different speeds. The values are strings denominated in base units of the network, so satoshi for bitcoin, wei for EVM etc.
safeLowstringThe lowest possible gas price for the transaction to be accepted
averagestringThe average gas price of transactions to be accepted in blockchain
faststringThe price for transaction to be accepted a little bit faster than the average one would
fasteststringThe price for transaction to be accepted as fast as possible
additionalDataobjectAny additional data specific to network. Currently only used by Cardano for base fee
Be Careful

Even though making request with polkadot network id will not return an error, it will always return zeroed out values