BNB Smart Chain
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
BNB Smart Chain
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
This is the height-addressed sibling of eth_getUncleByBlockHashAndIndex. Same empty result; the only difference is how you name the block. On BNB Smart Chain (chain ID 56, gas paid in BNB) the PoSA validator set seals one canonical block roughly every three seconds under fast finality, so orphaned siblings never form. The eth_getUncleByBlockNumberAndIndex method at https://bsc.therpc.io/YOUR_API_KEY carries forward the Ethereum API surface and nothing more. You point it at a block by number or by a tag such as latest, then give it an ommer position. Where Ethereum would return a sibling header, chain 56 returns null. No uncle exists at any height to read.
null, confirming the rate is zero.earliest tag to inspect genesis-era uncle data without first looking up a hash. The syntax is convenient, though BNB Smart Chain still has nothing to return there.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | blockTag | string | 是 | The block that references the uncle. |
| 2 | uncleIndex | string (hex) | 是 | Zero-based index of the uncle within the block's uncles array. |
| 类型 | 描述 |
|---|---|
| object | null | Same uncle header object as eth_getUncleByBlockHashAndIndex. Returns null if not found. |
Try it live in the BNB Smart Chain playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32602 | Invalid params | Block tag or uncle index is malformed. |
null no matter which height or tag you target. Never build logic that blocks waiting for a non-null header.参数
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"
0x-prefixed hex integer (e.g. "0x0")