Modules: net

net_listening

Listening returns an indication if the node is listening for network connections.

Params (0)

None

Result

bool

  • Required: ✓ Yes

Client Method Invocation Examples

=== "Shell HTTP"

``` shell
curl -X POST -H "Content-Type: application/json" http://localhost:8545 --data '{"jsonrpc": "2.0", "id": 42, "method": "net_listening", "params": []}'
```

=== "Shell WebSocket"

``` shell
wscat -c ws://localhost:8546 -x '{"jsonrpc": "2.0", "id": 1, "method": "net_listening", "params": []}'
```

=== "Javascript Console"

chevron-rightSource codehashtag

```go func (s *NetAPI) Listening() bool { return true }// Listening returns an indication if the node is listening for network connections.

View on GitHub →arrow-up-right


net_version

Version returns the current ethereum protocol version.

Params (0)

None

Result

string

  • Required: ✓ Yes

Client Method Invocation Examples

=== "Shell HTTP"

=== "Shell WebSocket"

=== "Javascript Console"

Last updated