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

#6 in #maestro

Download history 298/week @ 2024-11-17 91/week @ 2024-11-24 333/week @ 2024-12-01 383/week @ 2024-12-08 269/week @ 2024-12-15 58/week @ 2024-12-22 212/week @ 2024-12-29 338/week @ 2025-01-05 332/week @ 2025-01-12 402/week @ 2025-01-19 459/week @ 2025-01-26 272/week @ 2025-02-02 435/week @ 2025-02-09 297/week @ 2025-02-16 283/week @ 2025-02-23 380/week @ 2025-03-02

1,405 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–18MB
~247K SLoC