BNB Smart Chain
Pronto para usar isso em produção?
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
BNB Smart Chain
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
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 não aceita parâmetros. Passe um array vazio [].
| Tipo | Descrição |
|---|---|
| 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.