#iota #tangle #client

iota-client

The official, general-purpose IOTA client library in Rust for interaction with the IOTA network (Tangle)

21 releases (5 stable)

2.0.1-rc.7 Mar 9, 2023
2.0.1-rc.5 Dec 21, 2022
2.0.1-rc.4 Nov 22, 2022
1.4.0 Mar 28, 2023
0.2.0 Jun 24, 2019

#1084 in Magic Beans

Download history 374/week @ 2023-02-02 904/week @ 2023-02-09 461/week @ 2023-02-16 343/week @ 2023-02-23 453/week @ 2023-03-02 909/week @ 2023-03-09 671/week @ 2023-03-16 403/week @ 2023-03-23 334/week @ 2023-03-30 337/week @ 2023-04-06 601/week @ 2023-04-13 253/week @ 2023-04-20 402/week @ 2023-04-27 121/week @ 2023-05-04 54/week @ 2023-05-11 24/week @ 2023-05-18

692 downloads per month
Used in 4 crates (2 directly)

Apache-2.0

675KB
12K SLoC

Rust 9K SLoC // 0.1% comments Java 3K SLoC // 0.2% comments Batch 68 SLoC

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(())}

Dependencies

~7–21MB
~441K SLoC