Skip to main content

/eth/v1/node/peers RPC Method

Get node network peers.

Updated on
Dec 17, 2024

/eth/v1/node/peers RPC Method

Parameters

state
array
The state of the node which can be 'disconnected', 'connecting', 'connected', 'disconnecting'
direction
array
The direction of the connection which can be - 'inbound' or 'outbound'

Returns

data
array
An array of data which contains the following fields:
peer_id
string
The unique identifier for the peer
enr
string
The Ethereum Node Record (ENR) for the peer
last_seen_p2p_address
string
The last known address for the peer
state
string
The current connection state of the peer
direction
string
The direction of the connection
meta
object
(Optional) The meta object which contains the following fields:
count
integer
The total number of peers
Request
1
curl --location 'https://docs-demo.vana-mainnet.quiknode.pro/eth/v1/node/peers' \
2
--header 'Content-Type: application/json'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free