Crates.io | synnax |
lib.rs | synnax |
version | 0.2.1 |
source | src |
created_at | 2022-10-04 12:51:28.075014 |
updated_at | 2023-05-10 14:03:51.368791 |
description | Cosmos-SDK multichain client |
homepage | |
repository | https://github.com/SylvestreG/synnax/ |
max_upload_size | |
id | 679806 |
size | 101,972 |
Synnax is an attempt to provide a front for Cosmos-SDK using Rust.
Synnax for the moment only support Cosmos queries using REST transport (LCD).
// Create a lcd transport using
let lcd = Lcd::new("https://api-kichain-ia.cosmosia.notional.ventures/".to_string()).unwrap();
let address = "ki1....cafe".to_string();
// Load cosmos interface using the lcd as transport
let cosmos = Cosmos::new(&lcd);
// query balance for address
let balances = cosmos
.bank
.balances(address)
.unwrap();
// print the result
println!("balance for {} {:#?}", balances);