curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getAssetsByOwner",
"params": {
"ownerAddress": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW",
"limit": 100
}
}
'
{
"jsonrpc": "2.0",
"id": "1",
"result": {
"total": 1,
"limit": 100,
"cursor": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w",
"items": [
{
"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
getAssetsByOwner DAS Method
List the NFTs, Core assets, compressed NFTs and optionally fungible tokens a Solana wallet owns. getAssetsByOwner 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": "getAssetsByOwner",
"params": {
"ownerAddress": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW",
"limit": 100
}
}
'
{
"jsonrpc": "2.0",
"id": "1",
"result": {
"total": 1,
"limit": 100,
"cursor": "J1S9H3QjnRtBbbuD4HjPV6RpRhwuk4zKbxsnCHuTgh9w",
"items": [
{
"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 wallet as
ownerAddress. Results include NFTs held in SPL Token and Token-2022 accounts, Metaplex Core assets and compressed NFTs, merged into one list.
- Accepted method names:
getAssetsByOwnerandget_assets_by_owner. - Set
options.showFungibleto also list fungible tokens with a nonzero balance. Each one then carriestoken_info.balance,token_accounts,associated_token_addressand, when a price is known,price_info.total_price. - Tokens without Token Metadata or a Token-2022 metadata extension are not listed. Assets whose supply is zero are skipped.
limitdefaults to 1000 and may not exceed 1000. Withoutpage,beforeorafter, the response carries acursor; pass it back ascursorfor the next page.pageworks with every sort;cursor,beforeandafterneed the defaultidsort.- Default order is asset id descending. A wallet holding more than 200,000 token accounts returns an error.
- One request examines at most 200,000 candidate assets. For deep pages, page by
cursorrather than highpagenumbers. - Cost: 1 credit per page. Counts against your plan’s DAS RPS limit.
Body
application/json
Was this page helpful?