DAS Methods
Get Token Accounts
Search and return a list of token accounts based on criteria.
Body Params
string
Public key of the mint to retrieve
string
Owner public key of the token accounts to revtrieve
number
Number of assets to return
number
The index of the "page" to retrieve.
string
pagination cursor
string
Retrieve assets before the specified ID
string
Retrieve assets after the specified ID
object
boolean
Show zero balance accounts
Javascript Request Example
const url = "https://aura-mainnet.metaplex.com";
fetch(url, {
method: "POST",
headers: "Content-Type": "application/json",
body: {
"jsonrpc": "2.0",
"id": 1,
"method": "getTokenAccounts",
"params": {}
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));