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.
On a proof-of-work network, an uncle (or ommer) is a valid block that two miners produced at nearly the same height. Only one wins the canonical slot; the runner-up is recorded as an uncle so its proposer still collects a partial reward. BNB Smart Chain does not work that way. BSC runs Proof-of-Staked-Authority (PoSA) consensus, where a small rotating set of validators takes scheduled turns sealing blocks roughly every three seconds. One authorized validator owns each slot, so no two competing blocks ever get mined for the same height, and BSC produces no uncle blocks at all. The Ethereum-compatible uncle fields stick around purely for tooling parity, not because the original goal of rewarding stale PoW work means anything here.
calculateUncleRate helper above against bscscan.com block ranges and it should return 0 every time; any non-zero result points to a malformed response, not real ommers.block.uncles is reliably an empty array on BSC. Guard against code that assumes entries exist, and skip eth_getUncleByBlockNumberAndIndex in loops where the count is always zero.