> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spark.money/llms.txt
> Use this file to discover all available pages before exploring further.

# getOwnedBalance

> Query owned Bitcoin, including funds locked in outgoing transfers and swaps.

Returns owned satoshis for a Spark address, including available funds and funds still owned in pending outgoing transfers or swaps. It excludes ordinary incoming payments that the receiver has not claimed. Use `getAvailableBalance()` to determine spendable funds.

## Method signature

```typescript theme={null}
async getOwnedBalance(sparkAddress: string): Promise<bigint>
```

Uses an authenticated client created with `createWithViewerKey()` or `createWithSigner()` and paginates internally. Private-wallet queries require owner or viewer authorization. A zero response does not establish whether a wallet is empty or access is missing.

```typescript theme={null}
const owned = await client.getOwnedBalance(ownerSparkAddress);
const available = await client.getAvailableBalance(ownerSparkAddress);
```

The two queries are separate snapshots; wallet activity can change between them. See [balance semantics](/wallets/balances#received-does-not-mean-spendable).
