Search
⌘K
Unichain
Methods
debug_getBadBlocks
debug_getRawBlock
debug_getRawHeader
debug_getRawReceipts
debug_getRawTransaction
debug_traceBlockByHash
debug_traceBlockByNumber
debug_traceCall
debug_traceTransaction
eth_accounts
eth_blobBaseFee
eth_blockNumber
eth_call
eth_callMany
eth_chainId
eth_coinbase
eth_createAccessList
eth_estimateGas
eth_feeHistory
eth_gasPrice
eth_getBalance
eth_getBlockByHash
eth_getBlockByNumber
eth_getBlockReceipts
eth_getBlockTransactionCountByHash
eth_getBlockTransactionCountByNumber
eth_getCode
eth_getFilterChanges
eth_getFilterLogs
eth_getLogs
eth_getProof
eth_getStorageAt
eth_getTransactionByBlockHashAndIndex
eth_getTransactionByBlockNumberAndIndex
eth_getTransactionByHash
eth_getTransactionCount
eth_getTransactionReceipt
eth_getUncleByBlockHashAndIndex
eth_getUncleByBlockNumberAndIndex
eth_getUncleCountByBlockHash
eth_getUncleCountByBlockNumber
eth_hashrate
eth_maxPriorityFeePerGas
eth_mining
eth_newBlockFilter
eth_newFilter
eth_newPendingTransactionFilter
eth_protocolVersion
eth_sendRawTransaction
eth_sendTransaction
eth_sign
eth_signTransaction
eth_simulateV1
eth_subscribe
eth_syncing
eth_uninstallFilter
eth_unsubscribe
net_listening
net_peerCount
net_version
trace_block
trace_call
trace_callMany
trace_filter
trace_get
trace_rawTransaction
trace_replayBlockTransactions
trace_replayTransaction
trace_transaction
txpool_content
web3_clientVersion
web3_sha3
Docs·APIs·Web3 RPC API·Unichain·Methods·eth_feeHistory

eth_feeHistory

Transaction fee history

https://api.1inch.com/web3/130

Parameters

blockCount (required)

Requested range of blocks. Clients will return less than the requested range if not all blocks are available.

blockCount
* string

newestBlock (required)

Highest block of the requested range.

newestBlock
* any
oneOf[0]
string
oneOf[1]
string (Enum)
earliest
finalized
safe
latest
pending

rewardPercentiles (required)

A monotonically increasing list of percentile values. For each block in the requested range, the transactions will be sorted in ascending order by effective tip per gas and the corresponding effective tip for the percentile will be determined, accounting for gas consumed.

rewardPercentiles
* array
items
number

Request

Request
object
jsonrpc
* string (Enum)
2.0
method
* string
params
array
items
any
oneOf[0]
string
oneOf[1]
any
oneOf[0]
string
oneOf[1]
string (Enum)
earliest
finalized
safe
latest
pending
oneOf[2]
array
items
number
id
* number
1

Response

Fee history result

Fee history for the returned block range. This can be a subsection of the requested range if not all blocks are available.

Fee history result
object
oldestBlock
* string
baseFeePerGas
* array
items
string
baseFeePerBlobGas
array
items
string
gasUsedRatio
* array
items
number
blobGasUsedRatio
array
items
number
reward
array
items
array
items
string
additionalProperties
none
JSON
1

Did you find what you need?