1 个稳定版本
1.0.0 | 2019年10月12日 |
---|
#10 在 #algorand
145KB
4.5K SLoC
rust-algorand-sdk
文档
Algorand 的一般文档可在 https://developer.algorand.org/ 找到
快速入门
use algosdk::{AlgodClient, KmdClient};
fn main() {
let algod_address = "https://127.0.0.1:8080";
let algod_token = "contents-of-algod.token";
let kmd_address = "https://127.0.0.1:7833";
let kmd_token = "contents-of-kmd.token";
let algod_client = AlgodClient::new(algod_address, algod_token);
let kmd_client = KmdClient::new(kmd_address, kmd_token);
println!("Algod versions: {:?}", algod_client.versions().unwrap().versions);
println!("Kmd versions: {:?}", kmd_client.versions().unwrap().versions);
}
依赖关系
~27MB
~662K SLoC