net namespace
net_listening
- Request
- Response
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "net_listening",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: boolean
net_localAddress
- Request
- Response
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "net_localAddress",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: string (address)
net_localEnode
- Request
- Response
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "net_localEnode",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: string
net_peerCount
- Request
- Response
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "net_peerCount",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: string (hex integer)
net_version
- Request
- Response
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "net_version",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: string