A general purpose IOTA client library for interaction with the IOTA network (Tangle)
High-level functions are accessible via the [Client
][client::Client].
Sending a block without a payload
# use iota_client::{Client, Result};
# #[tokio::main]
# async fn main() -> Result<()> {
let client = Client::builder()
.with_node("http://localhost:14265")?
.finish()?;
let block = client
.block()
.finish()
.await?;
println!("Block sent {}", block.id());
# Ok(())}