> ## 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.

# getAvailableBalance

> Get the available Bitcoin balance for a Spark address.

Gets the available Bitcoin balance in satoshis for a Spark address. Automatically paginates through all wallet nodes.

## Method Signature

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

## Parameters

<ResponseField name="sparkAddress" type="string" required>
  The Spark address to query (e.g., `"sp1..."`).
</ResponseField>

## Returns

<ResponseField name="balance" type="bigint" required>
  Available balance in satoshis. Returns `0n` for private wallets queried without authentication.
</ResponseField>

## Example

```typescript theme={null}
const balance = await client.getAvailableBalance("sp1...");
console.log("Balance:", balance, "sats");
console.log("Balance (BTC):", Number(balance) / 1e8);
```
