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 442/week @ 2024-08-26 23/week @ 2024-09-02 15/week @ 2024-09-16 14/week @ 2024-09-23 192/week @ 2024-09-30 75/week @ 2024-10-07 235/week @ 2024-10-14 5/week @ 2024-10-21 45/week @ 2024-10-28 111/week @ 2024-11-04 123/week @ 2024-11-11 296/week @ 2024-11-18 84/week @ 2024-11-25 333/week @ 2024-12-02 444/week @ 2024-12-09

1,168 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
~248K SLoC