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

# Get SOL Balance

Check a wallet's native SOL balance on Solana. Returns both the raw lamport amount and a human-readable SOL value. Supports mainnet and devnet.

![Get SOL Balance logo](https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/solana/info/logo.png)
Catalog action Solana Onchain

Check a wallet's native SOL balance on Solana. Returns both the raw lamport amount and a human-readable SOL value. Supports mainnet and devnet.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `get-sol-balance` |
| Category | Solana Onchain |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `blockchain`, `solana`, `native`, `balance`, `query`, `read`, `sol`, `wallet` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `address` | `string` | Yes | Solana wallet address \(base58 encoded\) |
| `chainId` | `number` | Yes | Solana network \(Mainnet or Devnet\) |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `balance` | `string` | Yes | Balance in lamports |
| `balanceSOL` | `string` | Yes | Human-readable balance in SOL \(e.g. '1.5'\) |
| `address` | `string` | No | - |
| `chainId` | `number` | No | - |

## Examples

**Workflow node**

```json
{
  "type": "get-sol-balance",
  "payload": {
    "address": "7v91N7iZ9mNicL8WfG6cgSCKyRXydQjLh6UYBWwm6y1Q",
    "chainId": 7565164
  },
  "children": []
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/get-sol-balance/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "address": "7v91N7iZ9mNicL8WfG6cgSCKyRXydQjLh6UYBWwm6y1Q",
    "chainId": 7565164
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.