Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 678 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 678 Bytes

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