Created
April 27, 2023 02:01
-
-
Save Enigo/117a746436474b2eba6478e732fe82f9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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