9 stable releases

1.2.5 Nov 18, 2024
1.2.4 Oct 15, 2024
1.2.3 Sep 30, 2024
1.2.2 Aug 28, 2024

#7 in #maestro

Download history 71/week @ 2024-10-29 106/week @ 2024-11-05 203/week @ 2024-11-12 204/week @ 2024-11-19 99/week @ 2024-11-26 358/week @ 2024-12-03 427/week @ 2024-12-10 210/week @ 2024-12-17 88/week @ 2024-12-24 225/week @ 2024-12-31 338/week @ 2025-01-07 322/week @ 2025-01-14 456/week @ 2025-01-21 401/week @ 2025-01-28 238/week @ 2025-02-04 472/week @ 2025-02-11

1,636 downloads per month
Used in whisky

Apache-2.0

65KB
2K SLoC

Maestro Logo

Rust SDK for the Maestro Dapp Platform

Getting Started

Prerequisites

Usage

[dependencies]
maestro-rust-sdk = { git = "https://github.com/maestro-org/rust-sdk.git" }
use maestro::Maestro;

let maestro_client = Maestro::new("<PROJECT_API_KEY>", "<NETWORK>")
  • To generate an API key, create a free account here!
  • Network options: mainnet, preprod, preview

Example

use maestro::Maestro;

#[tokio::main]
async fn main() {
    let maestro_client = Maestro::new(
        String::from("<PROJECT_API_KEY>"),
        String::from("<NETWORK>"),
    );

    match maestro_client.block_info(9005859).await {
        Ok(block_info) => println!("{}", block_info.data.absolute_slot),
        Err(e) => eprint!("Failed to retrieve block info {}", e),
    }
}

Documentation

Contributing

Meastro welcomes all contributors! Please see our contributing guidelines and code of conduct.

Dependencies

~6–22MB
~250K SLoC