Get Assets By Owner
Last updated
Was this helpful?
Last updated
Was this helpful?
The method returns a list of assets owned by a certain address or account. You can query the API for all assets associated with that owner by supplying the owner's pubkey as a parameter.
This is the more efficient version of `getTokenAccountsByOwner` in the standard Solana RPC API and allows you to access and retrieve the assets owned by a specific address, enabling functionalities like displaying a user's NFT collection, managing ownership, or facilitating transactions involving the owner's assets.
ownerAddress
Address of the asset authority
sortBy
The Sorting Criteria: Defined as an object { sortBy: , sortDirection: }
, where sortBy
can be "created", "updated", "recentAction", or "none"
, and sortDirection
can be "asc" or "desc"
.
limit
The maximum number of assets to retrieve.
page
The index of the "page" to retrieve.
before
Fetch assets before the given ID.
after
Fetch assets after the given ID.