pd::network::join

Function fetch_peers

source
pub async fn fetch_peers(tm_url: &Url) -> Result<Vec<Address>>
Expand description

Query the Tendermint node’s RPC endpoint at tm_url and return a list of all known peers by their external_addresses. Omits private/special addresses like localhost or 0.0.0.0.