| Crates.io | maestro-rust-sdk |
| lib.rs | maestro-rust-sdk |
| version | 1.2.5 |
| created_at | 2024-08-08 15:29:37.573418+00 |
| updated_at | 2024-11-18 17:48:00.6468+00 |
| description | Rust SDK for the Maestro Dapp Platform |
| homepage | |
| repository | https://github.com/maestro-org/rust-sdk |
| max_upload_size | |
| id | 1329671 |
| size | 83,067 |
[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>")
mainnet, preprod, previewuse 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),
}
}
Meastro welcomes all contributors! Please see our contributing guidelines and code of conduct.