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.
BNB Smart Chain settles BNB-paid fees and BEP-20 transfers under PoSA consensus. When you need to confirm a node is wired to the right one, net_version is the quickest check. It returns the network ID of the connected chain as a decimal string. On BNB Smart Chain mainnet that string is exactly "56", and the testnet answers "97". Send the request to https://bsc.therpc.io/YOUR_API_KEY against chain ID 56 and a correctly configured mainnet node replies with "56". The value arrives as a plain decimal string rather than a hex quantity, so comparing it directly in client code takes no extra parsing.
"56", before broadcasting a BNB-funded transaction."56" as production mainnet and "97" as the testnet sandbox.Este método no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| string | Decimal string network ID, e.g. `"1"` for Ethereum mainnet. Note: network ID and chain ID coincide on most networks but can differ. |
Try it live in the BNB Smart Chain playground.
eth_chainId for the value baked into transaction signatures.