Last updated 1 month ago
Get balance by address.
Address
Successful operation
"OK"
const response = await fetch('https://open-api-fractal.unisat.io/v1/indexer/address/{address}/balance', { method: 'GET', headers: {}, }); const data = await response.json();
{ "code": 0, "msg": "OK", "data": { "address": "text", "satoshi": 0, "pendingSatoshi": 0, "utxoCount": 0, "btcSatoshi": 0, "btcPendingSatoshi": 0, "btcUtxoCount": 0, "inscriptionSatoshi": 0, "inscriptionPendingSatoshi": 0, "inscriptionUtxoCount": 0 } }
const response = await fetch('https://open-api.unisat.io/v1/indexer/address/{address}/balance', { method: 'GET', headers: {}, }); const data = await response.json();