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
| Field | Type |
|---|---|
| result | object |
Examples
curl https://triport.io/sol \
-X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer <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", Authorization: "Bearer <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={"Authorization": "Bearer <api-key>"},
json={"id":1,"method":"getAsset","params":[],"jsonrpc":"2.0"},
)
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Networks: mainnet.
- 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.