Net module

net_listening

Invocation

{"method":"net_listening","params":[]}

This method doesn't have parameters.

Returned type

Description

Boolean

Example request of net_listening
Example request of net_listening
curl --data '{"method":"net_listening","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

net_localAddress

Invocation

{"method":"net_localAddress","params":[]}

This method doesn't have parameters.

Returned type

Description

Address

Example request of net_localAddress
Example request of net_localAddress
curl --data '{"method":"net_localAddress","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

net_localEnode

Invocation

{"method":"net_localEnode","params":[]}

This method doesn't have parameters.

Returned type

Description

String

Example request of net_localEnode
Example request of net_localEnode
curl --data '{"method":"net_localEnode","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

See also CLI net.localEnode

net_peerCount

Invocation

{"method":"net_peerCount","params":[]}

This method doesn't have parameters.

Returned type

Description

Quantity

Example request of net_peerCount
Example request of net_peerCount
curl --data '{"method":"net_peerCount","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

See also CLI net.peerCount

net_version

Invocation

{"method":"net_version","params":[]}

This method doesn't have parameters.

Returned type

Description

String

Example request of net_version
Example request of net_version
curl --data '{"method":"net_version","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

See also CLI net.version