synnax

Crates.iosynnax
lib.rssynnax
version0.2.1
sourcesrc
created_at2022-10-04 12:51:28.075014
updated_at2023-05-10 14:03:51.368791
descriptionCosmos-SDK multichain client
homepage
repositoryhttps://github.com/SylvestreG/synnax/
max_upload_size
id679806
size101,972
syl (SylvestreG)

documentation

README

Synnax is an attempt to provide a front for Cosmos-SDK using Rust.

Known limitations.

Synnax for the moment only support Cosmos queries using REST transport (LCD).

Examples

Balance querying

// 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);

Contract Helper


Commit count: 12

cargo fmt