A Rust SDK for Blockfrost.io API.
Getting started • Installation • Usage
To use this SDK, you first need login into to blockfrost.io create your project to retrieve your API key.
Add to your project's Cargo.toml
:
toml
blockfrost = "0.2.0"
There are multiple other examples in the examples/
folder.
```rust use blockfrost::{load, BlockFrostApi};
fn buildapi() -> blockfrost::Result
async fn main() -> blockfrost::Result<()> { let api = build_api()?; let genesis = api.genesis().await?;
println!("{:#?}", genesis);
Ok(())
} ```