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 block without a payload
let client = Client::builder()
.with_node("http://localhost:14265")?
.finish()?;
let block = client
.block()
.finish()
.await?;
println!("Block sent {}", block.id());
Re-exports
pub use crypto;
pub use iota_pow as pow;
pub use packable;
pub use self::builder::ClientBuilder;
pub use self::builder::NetworkInfo;
pub use self::builder::NetworkInfoDto;
pub use self::node_api::core::routes::NodeInfoWrapper;
pub use self::node_api::mqtt::*;
mqtt
pub use self::client::*;
pub use self::error::*;
pub use self::utils::*;
Modules
- High level APIs
- API-related types like responses and DTOs.
- Core data types for blocks in the tangle.
- Builder of the Client Instance
- The Client module to connect through HORNET or Bee with API usages
- Constants for the Client
- Error handling in iota-client crate.
- message_interface
message_interface
Message interface for bindings - node API modules
- The node manager that takes care of sending requests with healthy nodes and quorum if enabled
- Secret manager module enabling address generation and transaction essence signing.
- Database provider interfaces and implementations.
- stronghold
stronghold
Stronghold integration for iota.rs. - Utility functions for IOTA
Structs
- A seed is an arbitrary bytestring used to create the root of the tree.
- A parsed URL record.