Crate iota_client[][src]

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

pub use bee_common as common;
pub use bee_message;
pub use bee_pow as pow;
pub use bee_rest_api;
pub use builder::ClientBuilder;
pub use client::*;
pub use crypto;
pub use error::*;

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

Output type filter.