Confirmed and unconfirmed balance of an address, now or at a past block or date.
GET/balance/{network}/{address}
- Takes: Crypto wallet
- Passive: the target is not contacted
Without height or time, returns the current balance. With one of them, returns the confirmed balance at the end of that block. Use one of height or time, not both.
Path parameters
networkNetwork code
addressThe address to look up
Query parameters
heightBalance at the end of this block
timeBalance at the last block at or before this time: Unix seconds, a UTC date or a timestamp
Response fields · 7ShowHide
status
success or fail
confirmed
Confirmed balance as an 8-decimal string
unconfirmed
Change pending transactions would make; negative while an outgoing payment waits
height
Block used (only with height or time)
time
Block time in Unix seconds (only with height or time)
block_hash
Block hash (only with height or time)
tip_height
Newest block when answered (only with height or time)
curl 'https://sochain.com/api/v3/balance/BTC/bc1qexampleaddress0000000000000000000000' \
-H 'API-KEY: YOUR_API_KEY'{
"status": "success",
"data": {
"confirmed": "0.12000000",
"unconfirmed": "0.00000000"
}
}