TriportRPC

getAssetsByOwner

Last updated:

`getAssetsByOwner` is a Digital Asset Standard (DAS) read method. Given a wallet address it returns the full set of assets that wallet owns — standard NFTs, compressed NFTs (cNFTs), and, where indexed, fungible token positions — in a single paginated call. Use it to render a wallet's portfolio or collection view without issuing one lookup per mint.

Because the result set for an active wallet can be large, responses are paginated. Request one page at a time and walk forward until a page returns fewer items than the requested `limit`.

This method belongs to the `sol_das` tier category and therefore requires at least a **basic** tier API key; free-tier keys are rejected with an authorization error (see [Errors](#errors)).

Parameters

This method takes no parameters.

Returns

getAssetsByOwner return value
FieldType
resultobject

Examples

curl https://<your-endpoint>/ \
  -X POST -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getAssetsByOwner","params":[]}'
const res = await fetch("https://<your-endpoint>/", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
  "id": 1,
  "method": "getAssetsByOwner",
  "params": [],
  "jsonrpc": "2.0"
}),
});
const data = await res.json();
import requests
resp = requests.post("https://<your-endpoint>/", json={"id":1,"method":"getAssetsByOwner","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 getAssetsByOwner do?
Returns every Digital Asset Standard (DAS) asset — NFTs, compressed NFTs, and fungible tokens — owned by a given Solana wallet.
How many credits does getAssetsByOwner cost?
getAssetsByOwner costs 10 credit(s) per call on Triport by default.
Is getAssetsByOwner available over WebSocket?
getAssetsByOwner is an HTTP JSON-RPC method.