Skip to main content

Get XCH Balance

This endpoint allows you to fetch the XCH balance for a given address.

Endpoint

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

Parameters

ParameterTypeDescription
addressstringThe XCH address
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/balance/{address}" \
-H "x-api-key: YOUR_API_KEY"

Live API Test

Request Example

Response

Failed to load API response. Please try again later.

Response Schema

FieldTypeDescription
balanceobjectXCH balance information
balance.mojonumberThe XCH balance in mojos
balance.xchnumberThe XCH balance in XCH
balance.usdnumberThe USD value of the XCH balance