getNftAssets
Retrieves NFT assets for the specified blockchain. This method fetches all NFTs (Non-Fungible Tokens) owned by the wallet.
Function Signature
Parameters
chainId
: The chain identifier in CAIP-2 format (e.g., "eip155:1" for Ethereum mainnet, "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" for Solana mainnet)
Returns
An array of NftAsset
objects, each containing:
nftID
: Unique identifier for the NFTname
: NFT namedescription
: NFT descriptionimageURL
: URL of the NFT imagechainID
: Blockchain identifiercontractAddress
: NFT contract addresstokenID
: Token identifiercollection
: Collection informationlastSale
: Last sale details containing:price
: Sale pricecurrency
: Currency useddate
: Sale date
rarity
: Rarity information:rank
: Rarity rankscore
: Rarity score
floorPrice
: Current floor price information:price
: Floor price valuecurrency
: Currency
detailedInfo
: Extended NFT information including:ownerCount
: Number of ownerstokenCount
: Total tokenscreatedDate
: Creation dateattributes
: NFT attributesowners
: Ownership detailsextendedCollectionInfo
: Collection metadataextendedSaleInfo
: Sale historymarketplaceInfo
: Marketplace listingsmediaInfo
: Media preview URLs and metadata
Example Usage
Implementation Notes
All fields in the NFT response are optional and should be safely unwrapped
The method provides rich metadata useful for marketplace integration
Floor prices and sale history can be used for portfolio valuation
Media previews include multiple resolutions for efficient loading
Last updated
Was this helpful?