Skip to content
SwapKit is a powerful suite of tools for building blockchain applications.

/gas/history

GET
/gas/history
chainId
string
Allowed values: 42161 0xa4b1 43114 0xa86a 8453 0x2105 56 0x38 bitcoin bitcoincash chainflip cosmoshub-4 dash dogecoin kaiyo-1 1 0x1 fiat litecoin mayachain-mainnet-v1 mayachain-stagenet-v1 near 10 0xa polkadot 137 0x89 radix-mainnet ripple thorchain-1 thorchain-stagenet-v2 solana

Chain id, if omitted return gas for all chains

timeFrame
string
Allowed values: 1h 1d 1w 1m

Time frame to get gas history

Default Response

Any of:
Array<object>
object
id
required
number
chainId
required
string
Allowed values: 42161 0xa4b1 43114 0xa86a 8453 0x2105 56 0x38 bitcoin bitcoincash chainflip cosmoshub-4 dash dogecoin kaiyo-1 1 0x1 fiat litecoin mayachain-mainnet-v1 mayachain-stagenet-v1 near 10 0xa polkadot 137 0x89 radix-mainnet ripple thorchain-1 thorchain-stagenet-v2 solana
value
required
string
unit
required
string
createdAt
required
string format: date-time