Skip to main content
BETA
HomeIntegration BuilderAPI ReferenceGuides
View Mirror World on Github
Join the Discord server

Language:

get_nft_details

Gets the details of a single NFT by it's mint address.


_35
use mirrorworld_sdk_rust::{ get_nft_details };
_35
_35
fn main() {
_35
let mint_address: &str = "5eGe5EaC5w5L9nCdmqM4eCe8ZLkBanBVMYBB4gj71qg";
_35
_35
let result: ISolanaNFT = get_nft_details(mint_address).await?;
_35
}
_35
_35
// Return Types
_35
// ============
_35
_35
#[derive(Debug, Serialize, Deserialize)]
_35
pub struct ISolanaNFT {
_35
pub name: Option<String>,
_35
#[serde(rename = "sellerFeeBasisPoints")]
_35
pub seller_fee_basis_points: Option<u32>,
_35
#[serde(rename = "updateAuthorityAddress")]
_35
pub update_authority_address: Option<String>,
_35
pub description: Option<String>,
_35
pub image: Option<String>,
_35
#[serde(rename = "externalUrl")]
_35
pub external_url: Option<String>,
_35
pub creators: Option<Vec<Creator>>,
_35
pub owner: Owner,
_35
pub attributes: Option<Vec<MetadataAttribute>>,
_35
pub listings: Option<Vec<String>>,
_35
}
_35
_35
// Error response if any
_35
// =====================
_35
#[derive(Debug, Serialize, Deserialize)]
_35
pub struct Err {
_35
#[serde(rename = "InstructionError")]
_35
pub instruction_error: Option<String>,
_35
}

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Tutorials

    Guides

    API Reference