BNB Smart Chain
Bereit, das in der Produktion aufzurufen?
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
BNB Smart Chain
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
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.Diese Methode erwartet keine Parameter. Übergib ein leeres Array [].
| Typ | Beschreibung |
|---|---|
| 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.