---
title: "Balance of an address"
method: GET
path: "/balance/{network}/{address}"
tags: ["Addresses"]
---

# Balance of an address

`GET /balance/{network}/{address}`

## Request

- Base URL: `https://sochain.com/api/v3`
- URL: `https://sochain.com/api/v3/balance/{network}/{address}`
- Auth: one of:
  - none
  - API key in header `API-KEY`
  - API key in query parameter `api_key`

Confirmed balance and the pending change from the mempool; with height or time, the confirmed balance at that point instead.

## Path parameters

- `network` 'BTC' | 'LTC' | 'DOGE' | 'ZEC' | 'BTCTEST' | 'LTCTEST' | 'DOGETEST' | 'ZECTEST', required
- `address` string, required

## Query parameters

- `height` integer
- `time` string

## Response `200`

Success.

- object
  - `status` 'success', required
  - `data` union, required
    - Balance
      - `confirmed` string, required: An exact decimal amount of coins with 8 decimals. Signed amounts may start with '-'. Parse as an integer of the smallest unit, not a float.
      - `unconfirmed` string, required: An exact decimal amount of coins with 8 decimals. Signed amounts may start with '-'. Parse as an integer of the smallest unit, not a float.
    - BalanceAt: The confirmed balance at a past point (with height or time).
      - `address` string, required
      - `height` integer, nullable, required: The block the balance is taken at; null for a time before the chain's first block.
      - `time` integer, nullable, required: That block's time (Unix).
      - `block_hash` string, nullable, required: That block's hash. If a reorg replaces it, ask again.
      - `confirmed` string, required: An exact decimal amount of coins with 8 decimals. Signed amounts may start with '-'. Parse as an integer of the smallest unit, not a float.
      - `tip_height` integer, required: The newest block when the answer was made.

## Other responses

- `400`: A bad parameter or body; the message says which.
- `401`: An invalid key, no key where one is needed (buckets, webhooks, /account_info), a locked account or expired plan, or both the month's requests and the keyless rate used up. Kept as 401, with this message, for v3 compatibility.
- `404`: Not found: an unknown network, or an argument the network doesn't know.
- `429`: Without a key, past the day's 2,500 lookups from this IP while SoChain is busy (Retry-After: 60), or past the day's most (Retry-After: seconds to 00:00 UTC). With or without one, too many requests in flight at once (Retry-After: 1, not counted).
- `503`: Briefly unavailable; retry with backoff. May carry Retry-After.

---

[API](https://skmtc.dev/sochain/apis/sochain-api.md) · [All operations](https://skmtc.dev/sochain/apis/sochain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sochain/apis/sochain-api/revisions/80682797b38f?raw)
