参数
此方法没有参数。
返回值
boolean Listening state.
适用场景
Check that the node accepts peer connections; a basic liveness signal.
如何解读结果
true or false.
提示
- For application health checks eth_blockNumber is more useful: it also shows the node is moving.
Returns true if the node is listening for peer connections.
curl https://eth.l0vdinfra.com/YOUR_KEY \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1,"method":"net_listening","params":[]}'响应示例
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}此方法没有参数。
boolean Listening state.
Check that the node accepts peer connections; a basic liveness signal.
true or false.