Gas and Fee
feeHistory
Returns the feeHistory for a given a block range.
POST
Body
application/json
Available options:
2.0
Example:
"2.0"
The name of the method to be invoked.
Available options:
quai_feeHistory
Example:
"quai_feeHistory"
The block count, the latest block to be queried, and the fee percentiles.
Example:
["0x2", "0x8", [2, 4, 6]]
A unique identifier for the request.
Example:
1
Response
200 - application/json
Successful response
Example:
"2.0"
Returns the feeHistory percentiles for the provided block range.
Example:
{
"oldestBlock": "0x15d",
"reward": [
["0x3b9aca00", "0x3b9aca00", "0x3b9aca00"],
["0x3b9aca00", "0x3b9aca00", "0x3b9aca00"]
],
"baseFeePerGas": ["0x12", "0x10", "0x1e"],
"gasUsedRatio": [0.0441, 0.0023625]
}
Example:
1
Was this page helpful?