BNB Smart Chain
BNB Smart Chain
BNB Smart Chain
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
BNB Smart Chain validators gossip blocks across a peer-to-peer mesh, secured by PoSA and paid for in BNB. net_listening asks one narrow question of the node behind your request. Is its networking layer open and accepting incoming peer connections right now? Aim the request at https://bsc.therpc.io/YOUR_API_KEY on chain ID 56 and the node answers with a plain boolean. You get true when its P2P port is actively listening for peers and false when networking is shut down or disabled. This is the lightest liveness signal there is. It says nothing about sync state or how many peers are actually attached.
此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| boolean | `true` if the client is listening for P2P connections, `false` otherwise. |
Try it live in the BNB Smart Chain playground.
true reply only confirms the port is open, not that any peers are attached; pair it with net_peerCount to verify the node has real connectivity into the BSC network.true unconditionally from their gateway, so the value may not reflect the listening state of any single backend node.