Tezos Node - Discover own peer id


#1

I have two nodes running in different data centers across the US. I’d like them to be peers of eachother and for them to be trusted. But I do not have the peer id for either; the logs have rotated this information away. I do not see any RPC command to display my own peer_id. Is there some way to retrieve this without having to restart both nodes?


#2

try this:
./tezos-node identity check


#3

That was simple. Thank you. I skipped right over the ‘identity’ section in the node man page.


#4

hello sir i developing nodejs api for tozes but i m not getting any relivent link or information can un plzzz . help me by providing . some hint


#5

The built-in help for the API is quite comprehensive. tezos-client rpc list / to see everything, including documentation