A Rust SDK for Blockfrost.io API.
Getting started • Installation • Examples
To use this SDK you need to login at blockfrost.io and create a new project to receive an API key.
Add to your project's Cargo.toml
:
toml
blockfrost = "0.2.1"
All the examples are located at the [examples/
] folder.
You might want to check [all_requests.rs
] and [ipfs.rs
].
Here is [simple_request.rs
] with the basic setup necessary and no settings
customization:
```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(())
} ```