Skip to content

Instantly share code, notes, and snippets.

@Enigo
Created April 27, 2023 02:01
Show Gist options
  • Save Enigo/117a746436474b2eba6478e732fe82f9 to your computer and use it in GitHub Desktop.
Save Enigo/117a746436474b2eba6478e732fe82f9 to your computer and use it in GitHub Desktop.
const MINTS_URL: &str = "https://api.x.immutable.com/v1/mints?token_address=0x9e0d99b864e1ac12565125c5a82b59adea5a09cd&page_size=200";
pub async fn read_mints() -> Option<Mint> {
match api_utils::fetch_single_api_response::<Mint>(MINTS_URL).await {
Ok(mints) => { Some(mints) }
Err(e) => {
error!("Error fetching mints {e}");
None
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment