Skip to main content
POST
/
api
/
solscan
/
accounts
/
tokens
/solscan/accounts/tokens
curl --request POST \
  --url https://api.anysite.io/api/solscan/accounts/tokens \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "address": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "token_account": "<string>",
    "@type": "SolscanAccountToken",
    "token_address": "<string>",
    "name": "<string>",
    "symbol": "<string>",
    "image": "<string>",
    "decimals": 123,
    "token_type": "<string>",
    "amount": 123,
    "amount_raw": "<string>",
    "price": 123,
    "value": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
address
string
required

Solana account or token mint address (base58)

Example:

"5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9"

count
integer
required

Max number of token holdings to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

token_account
string
required
@type
string
default:SolscanAccountToken
token_address
string | null
name
string | null
symbol
string | null
image
string | null
decimals
integer | null
token_type
string | null
amount
number | null
amount_raw
string | null
price
number | null
value
number | null