Network (net_) endpoints in Frietor Chains
net_version
Returns the current network id.
Parameters
- None
Returns
String
- The current network id.
Example
curl -X POST --data '{"jsonrpc":"2.0","method":"net_version","params":[],"id":67}' https://rpc-saar.frietor.network/rpc
net_listening
Returns true
if client is actively listening for network connections.
Parameters
- None
Returns
Boolean
-true
when listening, otherwisefalse
.
Example
curl -X POST --data '{"jsonrpc":"2.0","method":"net_listening","params":[],"id":67}' https://rpc-saar.frietor.network/rpc
net_peerCount
Returns number of peers currently connected to the client.
Parameters
- None
Returns
String
- The number of connected peers.
Example
curl -X POST --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":74}' https://rpc-saar.frietor.network/rpc