Skip to article
relayOpen console
Digital assets
On this page

APIs

Digital assets

Read token and NFT data through the Digital Asset Standard API.

Read an asset

DAS requests use the same /rpc endpoint and authentication as Solana RPC. This example requests the wrapped SOL mint, So11111111111111111111111111111111111111112.

getAsset
curl "$RELAY_RPC_URL" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $RELAY_API_KEY" \
  -d '{"jsonrpc":"2.0","id":1,"method":"getAsset","params":{"id":"So11111111111111111111111111111111111111112"}}'

The asset response depends on the indexed data available for that address. Inspect error before using result.

Credits and throughput

Each supported DAS method costs 10 credits. DAS has its own requests-per-second limit, while its credit usage shares the same purchased allowance as RPC and enabled streaming.

You can batch supported DAS and RPC requests, up to 10 items. The corresponding rate limit and credit cost apply to each item.

Supported DAS methods

MethodCredits
getAsset10
getAssetBatch10
getAssetsByOwner10
getAssetsByGroup10
getAssetsByCreator10
getAssetsByAuthority10
searchAssets10
getAssetProof10
getAssetProofBatch10
getTokenAccounts10
getNftEditions10
getSignaturesForAsset10

Search documentation

Find what you need

Search article headings, methods, and explanations.