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

/gas/history

GET
/gas/history
chainId
string
Allowed values: 42161 1313161554 43114 8453 80094 56 bitcoin bitcoincash 3637 cardano chainflip 1116 21000000 cosmoshub-4 25 dash dogecoin 1 100 harbor-1 harbor-stagenet-1 2868 kaiyo-1 litecoin mayachain-mainnet-v1 mayachain-stagenet-v1 near noble-1 10 polkadot 137 radix-mainnet ripple solana 146 sui thorchain-1 thorchain-stagenet-v2 ton 728126428 130 196 zcash

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 1313161554 43114 8453 80094 56 bitcoin bitcoincash 3637 cardano chainflip 1116 21000000 cosmoshub-4 25 dash dogecoin 1 100 harbor-1 harbor-stagenet-1 2868 kaiyo-1 litecoin mayachain-mainnet-v1 mayachain-stagenet-v1 near noble-1 10 polkadot 137 radix-mainnet ripple solana 146 sui thorchain-1 thorchain-stagenet-v2 ton 728126428 130 196 zcash
value
required
string
unit
required
string
createdAt
required
string format: date-time