use blockfrost::{BlockFrostSettings, BlockfrostAPI, BlockfrostResult, Pagination}; fn build_api() -> BlockfrostResult { let settings = BlockFrostSettings::new(); let api = BlockfrostAPI::new("preprododflHjPhpRp4NzRFL1m9zzd6ZJb1RjYi", settings); Ok(api) } #[tokio::main] async fn main() -> BlockfrostResult<()> { let api = build_api()?; let pagination_all = Pagination::all(); println!("Fetching ..."); let all_utxos = api .addresses_utxos_asset( "addr_test1wz2mzj532enpgu5vgwxuh249fpknx5ft9wxse2876z0mp2q89ye7k", "c6e65ba7878b2f8ea0ad39287d3e2fd256dc5c4160fc19bdf4c4d87e7447454e53", pagination_all, ) .await; println!("count of all utxos: {:#?}", all_utxos?.len()); Ok(()) }