TriportRPC

getAsset

POSThttps://api.triport.io/v1/solana

Fetches a single Digital Asset Standard (DAS) asset by its ID.

Solanasol_das**basic+** (no free-tier access); per-tier RPS not yet pinned in this spec revision — see [rate-limits](../../rate-limits.md)

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

The parameter schema for this method is a scaffold in the current spec revision and will be expanded in api.2.2+. The intended call takes a single DAS asset ID.

idstringrequired
The Digital Asset Standard asset ID to fetch.

Response

The result is a DAS asset object. The current spec revision declares the result as an open object (additionalProperties: true); the representative shape below will be tightened in api.2.2+.

resultobject
The DAS asset record. The exact field set is provisional pending the api.2.2+ schema.
result.idstring
The asset ID that was requested.

Errors

CodeMeaningWhen it happens
-32602Invalid paramsThe id is missing or malformed.
401UnauthorizedMissing, invalid, or revoked API key.
403ForbiddenKey lacks the sol_das scope or is below the basic tier (e.g. a free-tier key).
429Rate limitedPer-tier RPS exceeded; retry after backoff.

See errors for the full error envelope and shared codes.

Examples

JavaScript (fetch)

const res = await fetch("https://api.triport.io/v1/solana", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.TRIPORT_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    jsonrpc: "2.0",
    id: 1,
    method: "getAsset",
    params: { id: "F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk" },
  }),
});


const { result } = await res.json();
console.log(result);

TypeScript SDK (@triport/sdk)

import { Triport } from "@triport/sdk";


const triport = new Triport({ apiKey: process.env.TRIPORT_API_KEY! });


const asset = await triport.solana.getAsset({
  id: "F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk",
});


console.log(asset.id);

Python (triport-sdk)

import os
from triport import Triport


triport = Triport(api_key=os.environ["TRIPORT_API_KEY"])


asset = triport.solana.get_asset(
    id="F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk",
)


print(asset["id"])

Notes

  • Spec status: scaffold. Params and result will be expanded in api.2.2+ — pin to a spec version in production and re-check this page when the schema is finalized.
  • Tier: requires basic+; there is no free-tier access to sol_das methods.
  • Related DAS methods: getAssetProof, getAssetsByGroup, getAssetsByOwner. Use one of the list methods to discover asset IDs, then getAsset to fetch the full record for one.