Crates.io link Docs.rs link License

# blockfrost-rust

A Rust SDK for Blockfrost.io API.

Getting startedInstallationExamplesEndpoints

## Getting started To use this SDK you need to login at [blockfrost.io](https://blockfrost.io) and create a new project to receive an API key. ## Installation Add to your project's `Cargo.toml`: ```toml blockfrost = "1.0.1" ``` ## Examples 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::{BlockfrostAPI, BlockfrostResult}; fn build_api() -> BlockfrostResult { let api = BlockfrostAPI::new("mainnetxvMK4xOpp5mHJgihi055KDLU64JJv2be", Default::default()); Ok(api) } #[tokio::main] async fn main() -> blockfrost::BlockfrostResult<()> { let api = build_api()?; let genesis = api.genesis().await?; println!("{:#?}", genesis); Ok(()) } ``` [`examples/`]: https://github.com/blockfrost/blockfrost-rust/tree/master/examples [`all_requests.rs`]: https://github.com/blockfrost/blockfrost-rust/blob/master/examples/all_requests.rs [`ipfs.rs`]: https://github.com/blockfrost/blockfrost-rust/blob/master/examples/ipfs.rs [`simple_request.rs`]: https://github.com/blockfrost/blockfrost-rust/blob/master/examples/simple_request.rs