Skip to main content

Get Token Balance

This endpoint allows you to fetch the token (CAT) balances for a given address.

Endpoint

GET https://api.spacescan.io/address/token-balance/{address}

Parameters

ParameterTypeDescription
addressstringThe XCH address to fetch token balances for
Free API

Use api.spacescan.io for free tier access. See our API Plans for rate limits and features.

Pro API

Use pro-api.spacescan.io with your API key in the x-api-key header. See our API Plans for details.

curl -X GET "https://pro-api.spacescan.io/address/token-balance/{address}" \
-H "x-api-key: YOUR_API_KEY"

Live API Test

Request Examples

Response

Failed to load API response. Please try again later.

Response Schema

FieldTypeDescription
statusstringSuccess or failure status
balancearrayList of token balances
balance[].asset_idstringThe asset ID of the token
balance[].token_idstringThe token ID in tkn format
balance[].balancenumberThe token balance amount
balance[].namestringThe name of the token (null if not available)
balance[].symbolstringThe symbol of the token (null if not available)