Tezos Node - Discover own peer id


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?


try this:
./tezos-node identity check


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


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


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