Get peer
Retrieves data about the given peer
Parameters
Name | Required | Type | Detail |
---|---|---|---|
peer_id | ✅ | String (path) | Peer ID string |
Result
Returns data about the node's network peer
Example
Request
curl <your-endpoint>/eth/v1/node/peers/16Uiu2HAkuf6dPWti9Upuo3APhPhhBagR4znSE2KmyJGAbhed6gSn
Return
On success
{
"data": {
"peer_id": "16Uiu2HAkuf6dPWti9Upuo3APhPhhBagR4znSE2KmyJGAbhed6gSn",
"enr": "enr:-KG4QP1fvYUfAOFXbUXBlhF4BDE2fpiMjr1sbTpGXR7Sg6mSZMfXIP3MDA1ZEKxOkh6kaHuy4OOYcFgLvnd243v4ZIZShGV0aDKQSibFiwIAAAD__________4JpZIJ2NIJpcIRtxhIHiXNlY3AyNTZrMaECA3BrmmNiyls0BQZqaGuDh71_B3gZTscX5IQWLWLj0XuDdGNwgko4g3VkcIJKOA==",
"last_seen_p2p_address": "/ip4/109.198.18.7/tcp/19000",
"state": "disconnected",
"direction": "outbound"
}
}