Node Endpoints
beacon_client.node_endpoints.NodeEndpoints
Source code in beacon_client/node_endpoints.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
|
get_node_identity()
Retrieves data about the node's network presence
Source code in beacon_client/node_endpoints.py
7 8 9 10 11 12 13 |
|
get_node_peers(disconnected=False, disconnecting=False, connected=False, connecting=False, inbound=False, outbound=False)
Retrieves data about the node's network peers. By default this returns all peers. Multiple query params are combined using AND conditions
Parameters:
Name | Type | Description | Default |
---|---|---|---|
disconnected |
bool
|
If true return nodes with status disconnected |
False
|
disconnecting |
bool
|
If true return nodes with status disconnecting |
False
|
connected |
bool
|
If true return nodes with status connected |
False
|
connecting |
bool
|
If true return nodes with status connecting |
False
|
inbound |
bool
|
If true return nodes with direction inbound |
False
|
outbound |
bool
|
If true return nodes with direction outbound |
False
|
Source code in beacon_client/node_endpoints.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|
get_node_version()
Requests that the beacon node identify information about its implementation in a format similar to a HTTP User-Agent field.
Source code in beacon_client/node_endpoints.py
79 80 81 82 83 |
|
get_peer_by_id(peer_id)
Retrieves data about the given peer
Parameters:
Name | Type | Description | Default |
---|---|---|---|
peer_id |
PeerId
|
Return peer for given peer id |
required |
Source code in beacon_client/node_endpoints.py
61 62 63 64 65 66 67 68 69 |
|
get_peer_count()
Retrieves number of known peers.
Source code in beacon_client/node_endpoints.py
71 72 73 74 75 76 77 |
|
get_syncing_status()
Requests the beacon node to describe if it's currently syncing or not, and if it is, what block it is up to.
Source code in beacon_client/node_endpoints.py
85 86 87 88 89 90 91 |
|