Skip to main content

Parameters

chainId
string
default:"1001"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"kaia_feeHistory"
required
JSON-RPC method name.
params
object
required
Parameters: [blockCount, newestBlock, rewardPercentiles].Positional parameters for kaia_feeHistory:
  • params[0]: Hex-encoded number of blocks in the requested range (max 1024).
  • params[1]: Block number where this transaction was included. Null when pending.
  • params[2]: Percentiles of priority fees to include in the response (0-100).

Returns

result
object
Base fee history for the requested block range.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1001 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "kaia_feeHistory",
    "params": [
      "0x5",
      0,
      [
        10,
        50,
        90
      ]
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {}
}