Crate iota_client

source ·
Expand description

A general purpose IOTA client library for interaction with the IOTA network (Tangle)

High-level functions are accessible via the Client.

Sending a message with an indexation payload

let iota = Client::builder()
  .with_node("https://api.lb-0.h.chrysalis-devnet.iota.cafe")?
  .finish()
  .await?;

let message = iota
  .message()
  .with_index("Hello")
  .with_data("Tangle".as_bytes().to_vec())
  .finish()
  .await?;

println!("Message sent {}", message.id().0);

Re-exports

Modules

  • High level APIs
  • Builder of the Client Instance
  • The Client module to connect through HORNET or Bee with API usages
  • Error handling in iota-client crate.
  • Iota node APIs
  • The node manager that takes care of sending requests and quroum if enabled

Structs

  • The outputs query options.
  • A seed is an arbitrary bytestring used to create the root of the tree.
  • A parsed URL record.

Enums