Get Token Account
Retrieve token account information
Request
const response = await fetch(
'https://arrow-api.yatori.io/v1/get-token-account',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <insert API key here>'
},
body: JSON.stringify({
owner_address: 'De5osHj8G13s15r6WNCdsF4ZSJBGS6q1DRzNHHSBtvQ6',
token_address: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'
})
}
)Response
response.json
{
"data": "H6ofiCoVjpvB8WTuMwNGHaiNTGCmsCfrMFVazM5T5Z7W",
"status": "Associated token account found successfully"
}Endpoint
POST
https://arrow-api.yatori.io/v1/get-token-accountHeaders
Auth Bearer Token
Include your Arrow API key as a Bearer token in the Authorization header
stringrequired
Parameters
owner_address
The wallet address that owns the token account
stringrequired
token_address
The mint address of the token
stringrequired
Request
const response = await fetch(
'https://arrow-api.yatori.io/v1/get-token-account',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <insert API key here>'
},
body: JSON.stringify({
owner_address: 'De5osHj8G13s15r6WNCdsF4ZSJBGS6q1DRzNHHSBtvQ6',
token_address: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v'
})
}
)Response
response.json
{
"data": "H6ofiCoVjpvB8WTuMwNGHaiNTGCmsCfrMFVazM5T5Z7W",
"status": "Associated token account found successfully"
}