curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getAsset",
"params": {
"id": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w"
}
}
'{
"jsonrpc": "2.0",
"id": "1",
"result": {
"interface": "ProgrammableNFT",
"id": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w",
"content": {
"$schema": "https://schema.metaplex.com/nft1.0.json",
"json_uri": "https://madlads-collection.s3.us-west-2.amazonaws.com/_collection.json",
"files": [
{
"uri": "https://madlads-collection.s3.us-west-2.amazonaws.com/_collection.png",
"mime": "image/png",
"cdn_uri": "https://image.solanatracker.io/proxy?url=https%3A%2F%2Fmadlads-collection.s3.us-west-2.amazonaws.com%2F_collection.png"
}
],
"metadata": {
"name": "Mad Lads",
"symbol": "MAD",
"json_name": "Mad Lads",
"description": "Fock it.",
"attributes": [],
"token_standard": "ProgrammableNonFungible"
},
"links": {
"image": "https://madlads-collection.s3.us-west-2.amazonaws.com/_collection.png",
"external_url": "https://madlads.com"
},
"category": "image"
},
"authorities": [
{
"address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW",
"scopes": [
"full"
]
}
],
"compression": {
"eligible": false,
"compressed": false,
"data_hash": "",
"creator_hash": "",
"asset_hash": "",
"tree": "",
"seq": 0,
"leaf_id": 0
},
"grouping": [],
"royalty": {
"royalty_model": "creators",
"target": null,
"percent": 0.05,
"basis_points": 500,
"primary_sale_happened": false,
"locked": false
},
"creators": [
{
"address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW",
"share": 100,
"verified": true
}
],
"ownership": {
"frozen": true,
"delegated": false,
"delegate": null,
"ownership_model": "single",
"owner": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW"
},
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 253
},
"mutable": true,
"burnt": false,
"token_info": {
"supply": 1,
"decimals": 0,
"token_program": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"mint_authority": "2G5CotQ6Q87yhZxKUWkwLY6Foi12Q3VFQ6KN4nTLbPSz",
"freeze_authority": "2G5CotQ6Q87yhZxKUWkwLY6Foi12Q3VFQ6KN4nTLbPSz"
},
"last_indexed_slot": 386264187
}
}DAS API
getAsset DAS Method
Get one Solana digital asset by id: NFT, pNFT, fungible, Token-2022, Metaplex Core or compressed NFT. getAsset parameters and examples.
POST
/
curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getAsset",
"params": {
"id": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w"
}
}
'{
"jsonrpc": "2.0",
"id": "1",
"result": {
"interface": "ProgrammableNFT",
"id": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w",
"content": {
"$schema": "https://schema.metaplex.com/nft1.0.json",
"json_uri": "https://madlads-collection.s3.us-west-2.amazonaws.com/_collection.json",
"files": [
{
"uri": "https://madlads-collection.s3.us-west-2.amazonaws.com/_collection.png",
"mime": "image/png",
"cdn_uri": "https://image.solanatracker.io/proxy?url=https%3A%2F%2Fmadlads-collection.s3.us-west-2.amazonaws.com%2F_collection.png"
}
],
"metadata": {
"name": "Mad Lads",
"symbol": "MAD",
"json_name": "Mad Lads",
"description": "Fock it.",
"attributes": [],
"token_standard": "ProgrammableNonFungible"
},
"links": {
"image": "https://madlads-collection.s3.us-west-2.amazonaws.com/_collection.png",
"external_url": "https://madlads.com"
},
"category": "image"
},
"authorities": [
{
"address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW",
"scopes": [
"full"
]
}
],
"compression": {
"eligible": false,
"compressed": false,
"data_hash": "",
"creator_hash": "",
"asset_hash": "",
"tree": "",
"seq": 0,
"leaf_id": 0
},
"grouping": [],
"royalty": {
"royalty_model": "creators",
"target": null,
"percent": 0.05,
"basis_points": 500,
"primary_sale_happened": false,
"locked": false
},
"creators": [
{
"address": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW",
"share": 100,
"verified": true
}
],
"ownership": {
"frozen": true,
"delegated": false,
"delegate": null,
"ownership_model": "single",
"owner": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW"
},
"supply": {
"print_max_supply": 0,
"print_current_supply": 0,
"edition_nonce": 253
},
"mutable": true,
"burnt": false,
"token_info": {
"supply": 1,
"decimals": 0,
"token_program": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"mint_authority": "2G5CotQ6Q87yhZxKUWkwLY6Foi12Q3VFQ6KN4nTLbPSz",
"freeze_authority": "2G5CotQ6Q87yhZxKUWkwLY6Foi12Q3VFQ6KN4nTLbPSz"
},
"last_indexed_slot": 386264187
}
}Pass the asset id as a named parameter: the mint for Token Metadata and Token-2022 assets, the asset account for Metaplex Core, or the asset id for a compressed NFT.
- Accepted method names:
getAssetandget_asset. - Display options go in
optionsordisplayOptions.showCollectionMetadataadds the collection’s name, symbol and image to eachgroupingentry.getAssetalways lists verified groups only. - An unknown id returns
-32000withRecordNotFound Error: Asset Not Found. A burned NFT whose mint supply is zero returnsAsset has no supply. A burned compressed NFT still resolves, withburnt: true. content.filesandcontent.linkscome from the asset’s off-chain JSON. Right after a mint or URI change they can be empty until the JSON has been fetched.- Unknown parameter names are rejected with
-32602. - Cost: 1 credit. Counts against your plan’s DAS RPS limit.
Body
application/json
Response
The asset.
Was this page helpful?