getAsset
https://api.triport.io/v1/solanaFetches a single Digital Asset Standard (DAS) asset by its ID.
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.
idstringrequiredResponse
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+.
resultobjectresult.idstringErrors
| Code | Meaning | When it happens |
|---|---|---|
-32602 | Invalid params | The id is missing or malformed. |
401 | Unauthorized | Missing, invalid, or revoked API key. |
403 | Forbidden | Key lacks the sol_das scope or is below the basic tier (e.g. a free-tier key). |
429 | Rate limited | Per-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_dasmethods. - Related DAS methods:
getAssetProof,getAssetsByGroup,getAssetsByOwner. Use one of the list methods to discover asset IDs, thengetAssetto fetch the full record for one.