8 stable releases

new 1.2.4 Oct 15, 2024
1.2.3 Sep 30, 2024
1.2.2 Aug 28, 2024

#675 in Magic Beans

Download history 237/week @ 2024-08-03 79/week @ 2024-08-10 61/week @ 2024-08-17 399/week @ 2024-08-24 77/week @ 2024-08-31 1/week @ 2024-09-07 14/week @ 2024-09-14 12/week @ 2024-09-21 181/week @ 2024-09-28 72/week @ 2024-10-05 218/week @ 2024-10-12

484 downloads per month
Used in whisky

Apache-2.0

64KB
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

~5–20MB
~251K SLoC