use ordiscan::{GetInscriptionInfoParams, GetListOfInscriptionParams, Ordiscan, Sort}; #[tokio::main] async fn main() -> Result<(), Box> { let api_key = String::from(""); let ordiclient = Ordiscan::new(api_key).unwrap(); // get address acitivity let address_activity = ordiclient .get_address_activity("bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh") .await?; // get inscription info let inspection_info = ordiclient .get_inscription_info(GetInscriptionInfoParams { id: Some("b183b76a2635d1937a60e3eb12e868a64e5fff5e56819cb348cd442877bf95e7i0"), number: None, }) .await?; // get list of inscription info let list_of_inscriptions = ordiclient .get_list_of_inscriptions(GetListOfInscriptionParams { address: Some("bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh"), sort: Sort::InscriptionNumberDesc, content_type: None, after_number: None, before_number: None, }) .await?; println!("{:#?}", address_activity); println!("{:#?}", inspection_info); println!("{:#?}", list_of_inscriptions); Ok(()) }