[Go to site: main page, start]

listnodes - Tron

listnodes. Returns the list of peer nodes currently connected to the queried node.

listnodes - tron [Value: 20CU]
Returns the list of peer nodes currently connected to the queried node.
Use cases
Use cases
  • Also available as GET
  • Inspect a node's peer-to-peer connectivity for diagnostics
Constraints
Constraints
  • host is returned hex-encoded and needs to be decoded to a readable IP
Get started
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --request POST \
     --url https://lb.drpc.live/tron/{API-KEY}/wallet/listnodes \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '{}'
Copy
Response
200
{
  "nodes": [
    { "address": { "host": "3137362e392e3134382e323336", "port": 18888 } },
    { "address": { "host": "35382e3133362e3130332e3833", "port": 18889 } },
    { "address": { "host": "31352e3233352e3233332e313239", "port": 18888 } }
    ...
  ]
}
Copy
Request params
idinteger
jsonrpcstring
methodstring
ParametersThis method does not accept any parameters.
This method does not accept any parameters.
visibleboolean
When true, addresses are base58check strings; when false (default), hex strings
Response
200
Returns the list of peer nodes currently connected to the queried node.
Response params
object
nodesarray_of_objects
The list of peer nodes currently known to this node.
object
addressobject
The network address at which this peer node can be reached.
object
hoststring
The peer's IP address or hostname, UTF-8 encoded as a hex string.
portinteger
The TCP port on which the peer listens for P2P connections.