Metaplex DAS API
Metaplex DAS API overview on Solana: NFTs, compressed NFTs, fungible and Token-2022 tokens, getAsset and searchAssets, pagination, and billing.
Decompression and data caching are done server-side. DAS is available on most Triton Solana endpoints, shared and dedicated, and is not offered on testnet. If your endpoint does not serve DAS, contact support.
Triton's open-source DAS work includes ingestion re-architected onto Yellowstone gRPC, new parsers for fungible tokens and Token-2022, and a query rework that brings getAsset to ~50 ms at P90.
Features and benefits
Asset transaction history
The transaction signatures for any compressed asset.
Easy token data
Current holders and balances for any token.
Search and filter
Find assets by owner, creator, authority, or collection.
Every asset type
One interface across regular and programmable NFTs, compressed NFTs, MPL Core, fungible tokens, and Metaplex agent tokens.
Server-side decompression
Merkle proofs and decompressed metadata for compressed assets, served by the API.
Supported methods
The API follows JSON-RPC 2.0. Every method's parameters and example request and response are in the DAS API reference.
getAsset
A single asset by ID: metadata, ownership, royalty, and collection
getAssets (also getAssetBatch)
Up to 1000 assets by ID in one call
getAssetProof, getAssetProofs (also getAssetProofBatch)
Merkle proofs for compressed assets. getAssetProofs takes up to 1000 IDs
getAssetsByOwner
Assets owned by an address
getAssetsByAuthority
Assets controlled by an authority
getAssetsByCreator
Assets created by a creator address
getAssetsByGroup
Assets in a group, for example a collection
searchAssets
Assets matching your search criteria
getTokenAccounts
Token accounts by owner or mint. Needs ownerAddress or mintAddress. Hides zero-balance accounts unless showZeroBalance is set
getTokenLargestAccounts
The 20 largest token accounts for a mint
getNftEditions
Edition NFTs printed from a master edition
getSignaturesForAsset (also getAssetSignatures)
Transaction signatures for a compressed asset. Pass id, or tree and leafIndex, not both
Get started
DAS is enabled by default on most Triton endpoints. Point DAS calls at your endpoint:
Backend:
https://<your-endpoint>.<network>.rpcpool.com/<your-token>, or pass your token as anx-tokenheader.Frontend:
https://<your-endpoint>.<network>.rpcpool.com/, with your domain set as an allowed origin in your customer dashboard.
Your rate and connection limits apply to DAS calls.
Fetch an asset
getAsset returns one asset by ID. The example uses a Mad Lads NFT, so the response carries the asset's metadata, owner, royalty, and collection:
Metaplex publishes a JavaScript DAS client with examples: digital-asset-standard-api. For the protocol and asset model, see the Metaplex DAS API documentation.
Pagination and sorting
Methods that return a list of assets page through results:
limit
Default 1000, maximum 1000.
page
Starts at 1. page: 0 returns an error. Can't be combined with before, after or cursor.
before, after
Asset IDs to page from. Can't be combined with cursor. Work only with sortBy id, the default.
cursor
The cursor from the previous response. Works only with sortBy id, the default.
sortBy is an object: { "sortBy": "<field>", "sortDirection": "asc" }. The field is id, created, updated, recent_action or none. sortDirection is asc (default) or desc. Any sortBy other than id needs page; without it the call returns a pagination error.
displayOptions takes these flags, all false by default: showUnverifiedCollections, showCollectionMetadata, showZeroBalance, showInscription and showFungible.
DAS methods with named parameters reject unknown fields, so a misspelled or misplaced parameter returns an error.
Fungible tokens and Token-2022
The DAS API indexes all mints and token accounts for the Solana Token Program and the Token Extensions (Token-2022) Program, so you can query token balances, metadata, and program details alongside NFTs.
Balances can be queried across:
SPL tokens
Token-2022 tokens
NFTs, both regular and compressed
These methods cover fungible tokens:
getAsset— details of a specific token mint.getAssetsByOwner— the tokens held by an account. It returns fungible tokens only when you set"displayOptions": { "showFungible": true }.searchAssets— search with filters, includingtokenType(fungible,nonFungible,regularNFT,compressedNFTorall).tokenTypeneedsownerAddressand can't be combined withownerTypeorinterface.
Query every token an address holds
Each fungible token in the response carries a token_info object at the top level of the asset, outside content, with its supply, decimals, token program, mint and freeze authorities, balance, and associated token address:
Token-2022 extensions
For Token-2022 mints, the response includes a mint_extensions field when applicable. For example, a mint with a transfer fee:
Pricing
DAS is billed on requests and bandwidth. For rates, see pricing.
On shared infrastructure,
getTokenLargestAccountsis billed as a standard RPC call.Your usage per product is in the customer dashboard under Billing → Usage charts. For how each product is billed, see How usage is billed.
What's next
Contact support by clicking the chat icon in your customer dashboard Sales questions? Contact us AI agent? Read llms.txt Follow updates: Blog · X · YouTube · Telegram · GitHub
Last updated