iota-client 1.4.0

The official, general-purpose IOTA client library in Rust for interaction with the IOTA network (Tangle)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2021 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

#[tokio::test]
async fn invalid_url() {
    let client = iota_client::Client::builder().with_node("data:text/plain,Hello?World#");
    assert!(client.is_err());
}
#[tokio::test]
async fn valid_url() {
    let client = iota_client::Client::builder().with_node("https://api.lb-0.h.chrysalis-devnet.iota.cafe");
    assert!(client.is_ok());
}