net namespace¶
Network identity and peer count.
3 public methods. Operator, disabled and unsupported methods of this namespace are listed in Operator interfaces. $RPC is your node URL (see quickstart).
| Method | Access | Summary |
|---|---|---|
net_listening |
Public · read-only | Returns an indication if the node is listening for network connections. |
net_peerCount |
Public · read-only | Returns the number of connected peers |
net_version |
Public · read-only | Returns the current ethereum protocol version. |
net_listening¶
Returns an indication if the node is listening for network connections.
| Access | Public · read-only · playground |
| Network | private testnet 77240 (local node or approved endpoint); mainnet not available |
| Authentication | none on loopback; bearer token when the node binds a non-loopback address; public proxies rate-limit per IP |
| Minimum software | protocol pqwerai-v8-testnet/1 |
| Verified | source core/source/internal/ethapi/api.go:2295 at Core bad4a06ea; registered on live CoreGeth/linux-amd64/go1.26.8 |
| Returns | boolean |
Parameters: none
Errors and edge cases
-32602invalid or missing parameter (e.g.missing value for required argument 0).-32000execution or validation error with a message from the node.
net_peerCount¶
Returns the number of connected peers
| Access | Public · read-only · playground |
| Network | private testnet 77240 (local node or approved endpoint); mainnet not available |
| Authentication | none on loopback; bearer token when the node binds a non-loopback address; public proxies rate-limit per IP |
| Minimum software | protocol pqwerai-v8-testnet/1 |
| Verified | source core/source/internal/ethapi/api.go:2300 at Core bad4a06ea; registered on live CoreGeth/linux-amd64/go1.26.8 |
| Returns | quantity (hex) |
Parameters: none
Errors and edge cases
-32602invalid or missing parameter (e.g.missing value for required argument 0).-32000execution or validation error with a message from the node.
net_version¶
Returns the current ethereum protocol version.
| Access | Public · read-only · playground |
| Network | private testnet 77240 (local node or approved endpoint); mainnet not available |
| Authentication | none on loopback; bearer token when the node binds a non-loopback address; public proxies rate-limit per IP |
| Minimum software | protocol pqwerai-v8-testnet/1 |
| Verified | source core/source/internal/ethapi/api.go:2305 at Core bad4a06ea; registered on live CoreGeth/linux-amd64/go1.26.8 |
| Returns | string |
Parameters: none
Errors and edge cases
-32602invalid or missing parameter (e.g.missing value for required argument 0).-32000execution or validation error with a message from the node.
Sources at 72057fe3ec: core/source/internal/ethapi/api.go
Found a problem? Report a documentation issue · Build testnet-rc1+72057fe3ec