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§

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

Modules§

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

Structs§

Seed
A seed is an arbitrary bytestring used to create the root of the tree.
Url
A parsed URL record.