// Copyright 2021 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 //! cargo run --example peers --release use iota_client::Client; /// In this example we will get information about the nodes peers #[tokio::main] async fn main() { // Create a client instance let iota = Client::builder() .with_node("https://api.lb-0.h.chrysalis-devnet.iota.cafe") // Insert your node URL here .unwrap() .finish() .await .unwrap(); let peers = iota.get_peers().await.unwrap(); println!("Peers: {peers:?}"); }