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

# UseBalances

```ts theme={null}
function useBalances(options): UseBalancesResult;
```

Hook for fetching all account balances

Fetches complete balance information including SOL and all token balances for an account.
Automatically enriches token metadata from the token registry.

## Parameters

| Parameter | Type | Description |
| - | - | - |
| `options` | [`UseBalancesOptions`](https://developers.squads.so/grid/v1/sdk-reference/react/reference/latest/interfaces/UseBalancesOptions) | Configuration options for balance fetching |

## Returns

[`UseBalancesResult`](https://developers.squads.so/grid/v1/sdk-reference/react/reference/latest/interfaces/UseBalancesResult)

Complete balance data with loading and error states

## Example

```tsx theme={null}
import { useBalances } from '@sqds/grid-react';

function WalletBalances() {
  const { balances, isLoading, error } = useBalances();

  if (isLoading) return <div>Loading...</div>;
  if (error) return <div>Error: {error.message}</div>;

  return (
    <div>
      <div>SOL: {balances.sol.amountDecimal}</div>
      {balances.tokens.map(t => <div key={t.tokenAddress}>{t.symbol}: {t.amountDecimal}</div>)}
    </div>
  );
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.