Links
🎈

Digital Asset Standard API

Query for tokens, NFTs, and compressed NFTs.
The API is currently in beta. We recommend testing in Devnet before deploying your workload to Mainnet.
Not all uncompressed NFTs have been indexed in Mainnet yet. We are indexing all new or recently modified NFTs.

Overview

The Digital Asset Standard (DAS) API is an open-source specification and system that provides a unified interface for interacting with digital assets (tokens, NFTs, etc). The API supports both regular and compressed NFTs. Some methods (e.g. "getAssetProof") are exclusively for compressed assets.
The DAS API adheres to the OpenRPC specification and behaves as an extension to the regular Solana API. The endpoint is shared with our RPC endpoint:
  • Devnet – https://rpc-devnet.helius.xyz
  • Mainnet – https://rpc.helius.xyz

OpenRPC Specification

The RPC methods are documented via the OpenRPC specification.
We support both camel and snake case for method names (e.g. getAssetProof or get_asset_proof)

Examples

Get Asset

const axios = require('axios')
​
const url = `https://rpc.helius.xyz/?api-key=<api_key>`
​
const getAssets = async () => {
const assetId = "4TqYFSJYj7kC1peJgve1jns2A1hStw9S4BdryJFyrNWH";
const { data } = await axios.post(url, {
{
"jsonrpc": "2.0",
"id": "my-id",
"method": "getAsset",
"params": [
assetId
]
}
});
console.log("assets: ", data.result);
};
getAssets();
​

Get Assets By Owner

const axios = require('axios')
​
const url = `https://rpc.helius.xyz/?api-key=<api_key>`
​
const getAssetsByOwner = async () => {
const owner = "93eNXwBovuytUL7pzP3WH6M987n5u27CVRgjQFGfvHhw";
const sortBy = {
"sortBy": "created",
"sortDirection": "asc"
};
const limit = 50;
const page = 1;
const before = "";
const after = "";
const { data } = await axios.post(url, {
{
"jsonrpc": "2.0",
"id": "my-id",
"method": "getAssetsByOwner",
"params": [
owner,
sortBy,
limit,
page,
before,
after
]
}
});
console.log("assets: ", data.result);
};
getAssetsByOwner();
​