eth_feeHistory
BNB Smart ChainC2Returns a window of base fees and requested priority-fee percentiles across recent blocks, for building EIP-1559 fee strategies.
Endpoint
POST https://api.1st-node.com/v1/bsc/rpcParameters
| Name | Type | Description |
|---|---|---|
| blockCount | QUANTITY | Number of blocks in the requested range. |
| newestBlock | QUANTITY | TAG | Highest block of the range. |
| percentiles | Array | Priority-fee percentiles to sample. |
Returns
Object — baseFeePerGas, gasUsedRatio and reward percentiles.
Request
curl https://api.1st-node.com/v1/bsc/rpc \
-H "Authorization: Bearer $ONE_KEY" \
-H "content-type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_feeHistory",
"params": ["0x5", "latest", [25, 50, 75]]
}'{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_feeHistory",
"params": ["0x5", "latest", [25, 50, 75]]
}Response
{
"jsonrpc": "2.0",
"id": 1,
"result": { "oldestBlock": "0x12d4e26", "baseFeePerGas": ["0x…"], "reward": [["0x…"]] }
}More chain methods on BNB Smart Chain
チャージして、キーを取得し、リリース。
セルフサーブ。暗号資産またはカードで支払い。クレジットで従量課金——重いプリミティブは高く、単純なものは安価。
APIキーを取得