### Initializing Blockfrost API and Fetching Genesis Data Source: https://github.com/jpg-store/blockfrost-rust/blob/master/README.md Demonstrates how to create a `BlockfrostAPI` instance using an API key and fetch the blockchain's genesis information asynchronously using `tokio`. Requires the `tokio` runtime. ```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(()) } ``` -------------------------------- ### Adding blockfrost-rust Dependency Source: https://github.com/jpg-store/blockfrost-rust/blob/master/README.md Adds the `blockfrost` crate as a dependency to your Rust project's `Cargo.toml` file, specifying version 1.0.1. ```TOML blockfrost = "1.0.1" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.