요금GitHub대시보드

TRON

wallet/listnodes10 크레딧

Returns the peers known to the node.

네트워크: tron

매개변수

이름타입설명
visiblebooleantrue = host as readable IP text; false (default) = hex-encoded IP text. (선택)

반환값

타입

Object

Object with a nodes array of { address: { host, port } }; {} when empty. These are connectable P2P nodes, not necessarily current connections (see peerList in wallet/getnodeinfo).

코드 예제

curl 'https://holy-burned-sky-tron-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/wallet/listnodes' \
  -X POST \
  -H 'content-type: application/json' \
  -d '{}'