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")