getAsset

Solana / https://triport.io/sol

Minimum tier: Basic

Solana method guide

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://triport.io/sol \
  -X POST -H 'Content-Type: application/json' \
  -H 'x-token: <api-key>' \
  -d '{"id":1,"method":"getAsset","params":[],"jsonrpc":"2.0"}'
const res = await fetch("https://triport.io/sol", {
  method: "POST",
  headers: { "Content-Type": "application/json", "x-token": "<api-key>" },
  body: JSON.stringify({
  "id": 1,
  "method": "getAsset",
  "params": [],
  "jsonrpc": "2.0"
}),
});
const data = await res.json();
import requests
resp = requests.post(
    "https://triport.io/sol",
    headers={"x-token": "<api-key>"},
    json={"id":1,"method":"getAsset","params":[],"jsonrpc":"2.0"},
)
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Chain: Solana.
  3. Clusters: mainnet.
  4. Billing: included in the flat monthly plan, no per-call credits.