getAssetsByOwner
Returns the digital assets owned by an address, with sorting, page, cursor, or before/after pagination, and display options such as showFungible.
Request
curl "https://<your-endpoint>.mainnet.rpcpool.com/<your-token>" -s -X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": "123",
"method": "getAssetsByOwner",
"params": [
"9kPPbeBAvCtJCZ98EFKabxp7wTeFQRseCYDRdovyfUfz",
{
"sortBy": "created",
"sortDirection": "desc"
},
50,
1,
null,
null
]
}'Parameters
ownerAddress
Address of the asset owner.
Yes
sortBy
Sorting criteria, as an object { sortBy: <value>, sortDirection: <value> }. sortBy is one of "id" (the default), "created", "updated", "recent_action", or "none". sortDirection is "asc" (the default) or "desc". Sorting by anything other than "id" requires page.
No
limit
The maximum number of assets to retrieve, up to 1000 (the default).
No
page
The index of the "page" to retrieve, starting at 1.
No
before
Fetch assets before the given ID.
No
after
Fetch assets after the given ID.
No
options
Display options, as an object of flags that default to false: showFungible, showCollectionMetadata, showUnverifiedCollections, showZeroBalance, showInscription. Also accepted as displayOptions.
No
cursor
Fetch the next page with the cursor value from the previous response.
No
Send parameters as a named object, or as an array in the order listed, with null for any you skip. Use one way to paginate per request: page, cursor, or before and after. cursor, before, and after need sorting by id.
Adapted from the Metaplex getAssetsByOwner reference, maintained by the Metaplex Foundation.
Contact support by clicking the chat icon in your customer dashboard Sales questions? Contact us AI agent? Read llms.txt Follow updates: Blog · X · YouTube · Telegram · GitHub
Last updated