use nxyz::NxyzClient; use nxyz::model::*; #[tokio::main] async fn main() { let client = NxyzClient::from_env(); let contract_address = "your contract address"; let response = client .get_collection(contract_address) .chain_id("your chain id") .send() .await .unwrap(); println!("{:#?}", response); }