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

# Check a Balance

> Read SOL or SPL token balances for a Solana address.

## SOL balance

```typescript theme={null}
const balance = await gasStation.getBalance({
  account: 'WALLET_ADDRESS',
})

console.log(balance.lamports)
console.log(balance.uiAmount)
```

## SPL token balance

Pass the token mint in `token`:

```typescript theme={null}
const usdcBalance = await gasStation.getBalance({
  account: 'WALLET_ADDRESS',
  token: 'MINT_ADDRESS',
})

console.log(usdcBalance.amount)
console.log(usdcBalance.decimals)
console.log(usdcBalance.uiAmount)
```

The response can include:

| Field      | Description                         |
| ---------- | ----------------------------------- |
| `address`  | Address represented by the response |
| `lamports` | Native SOL balance in lamports      |
| `amount`   | Raw token amount as a string        |
| `decimals` | Mint decimals                       |
| `uiAmount` | Human-readable amount               |

<Note>
  Use raw base-unit values for calculations. Display `uiAmount` only when its precision is appropriate for your application.
</Note>
