#algorand #algod #kmd #kmd-client #algod-client

algosdk

Library for interacting with the the Algorand network, including algod and kmd

1 stable release

1.0.0 Oct 12, 2019

#10 in #algorand

MIT license

145KB
4.5K SLoC

rust-algorand-sdk

Documentation

General Algorand documentation is available at https://developer.algorand.org/

Quickstart

use algosdk::{AlgodClient, KmdClient};

fn main() {
    let algod_address = "http://localhost:8080";
    let algod_token = "contents-of-algod.token";
    let kmd_address = "http://localhost: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);
}

Dependencies

~27MB
~662K SLoC