Overview
getAsset returns one asset by its ID: metadata, ownership, royalties, creators, collection, compression state and token details, all in one call. It works for every asset type the DAS API indexes.
Parameters
string
required
The asset ID (base-58). For token-based assets use the mint address.
object
Display options:
showUnverifiedCollections, showCollectionMetadata, showInscription. Also accepted as displayOptions.Response
An asset object.Code Examples
Request
Response
A compressed NFT from the DRiP collection:TypeScript
Common Errors
Related Methods
- getAssetBatch: fetch up to 1,000 assets in one call
- getAssetWithProof: fetch a compressed asset together with its proof