Skip to main content
Version: 1.26.0

admin namespace

admin_addPeer

Adds given node.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "admin_addPeer",
"params": [enode, addToStaticNodes]
}'

admin_nodeInfo

Displays relevant information about this node.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "admin_nodeInfo",
"params": []
}'

admin_peers

Displays a list of connected peers including information about them (clientId, host, port, address, isBootnode, isStatic, enode).

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "admin_peers",
"params": [includeDetails]
}'

admin_prune

Runs full pruning if enabled.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "admin_prune",
"params": []
}'

admin_removePeer

Removes given node.

curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "admin_removePeer",
"params": [enode, removeFromStaticNodes]
}'