BNB Smart Chain
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
BNB Smart Chain
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
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.| # | Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|---|
| 1 | blockTag | string | Sí | The block that references the uncle. |
| 2 | uncleIndex | string (hex) | Sí | Zero-based index of the uncle within the block's uncles array. |
| Tipo | Descripción |
|---|---|
| object | null | Same uncle header object as eth_getUncleByBlockHashAndIndex. Returns null if not found. |
Try it live in the BNB Smart Chain playground.
| Código | Mensaje | Causa |
|---|---|---|
-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.Parámetros
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"
0x-prefixed hex integer (e.g. "0x0")