TriportRPC

getAsset

Last updated:

`getAsset` returns the full record for a single Digital Asset Standard asset, looked up by its asset ID. The DAS family of methods provides a unified view over Solana assets — including compressed NFTs, regular NFTs, and fungible tokens — so you can read an asset's metadata, ownership, and on-chain grouping through one call rather than stitching together several lower-level account reads.

Use this when you already hold an asset ID (for example one returned by another DAS method such as `getAssetsByOwner`) and need the canonical details for that one asset.

This method belongs to the `sol_das` category and requires the **basic** tier or higher. It is not available on the free tier — a free-tier key will be rejected with an authorization error.

Parameters

This method takes no parameters.

Returns

getAsset return value
FieldType
resultobject

Examples

curl https://<your-endpoint>/ \
  -X POST -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getAsset","params":[]}'
const res = await fetch("https://<your-endpoint>/", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
  "id": 1,
  "method": "getAsset",
  "params": [],
  "jsonrpc": "2.0"
}),
});
const data = await res.json();
import requests
resp = requests.post("https://<your-endpoint>/", json={"id":1,"method":"getAsset","params":[],"jsonrpc":"2.0"})
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Networks: mainnet.
  3. Credit cost: 10 per call.

FAQ

What does getAsset do?
Fetches a single Digital Asset Standard (DAS) asset by its ID.
How many credits does getAsset cost?
getAsset costs 10 credit(s) per call on Triport by default.
Is getAsset available over WebSocket?
getAsset is an HTTP JSON-RPC method.