Skip to content

sidan-lab/maestro-rust-sdk

 
 

Repository files navigation

Maestro Logo

Rust SDK for the Maestro Dapp Platform

Getting Started

Prerequisites

Installation

Crates Reference

# TODO

Usage

[dependencies]
maestro = { 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.

About

Rust SDK for the Maestro Dapp Platform

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.6%
  • Makefile 0.4%