Node reference
SOL balance
Read an account balance
SOL balance reads the native SOL held by a public address. Use this read-only node to learn the RPC connection before adding any signing operation.
Try it step by step#
- Choose a Solana network and RPC route, then enter an address or select a wallet variable.
- Connect Start → SOL balance and run once.
- Inspect solString for the decimal balance and lamports for the same amount in the smallest unit.
What to expect#
An illustrative balance of 1.5 SOL appears as solString: "1.5" and lamports: "1500000000". The actual balance and context slot come from your chosen network.
Things to check#
- Keep large raw amounts as strings to avoid rounding them in JavaScript.
- This reads native SOL. Use Token balance or Token holdings for tokens.
- A wallet can have different balances on mainnet and devnet. Check the selected network first when the result surprises you.
Keep learning#
Network setup: This node uses solana. See connections for RPC setup and Test mode for network selection.
Parameters#
| Setting | Default | What it does |
|---|---|---|
| RPC URL | {{global.chains.solana.rpcUrl}} | Configured for Solana in workspace RPC settings. |
| Commitment | confirmed | How far a Solana block must be confirmed before its data is used. |
| Address | {{global.main_wallet}} | Public address to read or observe on the selected Solana network. |
| Include Context | true | Includes the RPC slot context from getBalance. |
| On failure | stop | Choose whether a failed execution stops the workflow or only ends this path. |
| Retry attempts | 0 | How many additional attempts to make after the first failure. |
RPC URL: Available under More options.
Commitment: Choices: Processed (processed), Confirmed (confirmed), Finalized (finalized). Available under More options.
Include Context: Available under More options.
On failure: Choices: Stop workflow (stop), Continue (continue). Available under More options.
Retry attempts: Available under More options. Limits: minimum 0.
Inputs#
| Port | Value | Description |
|---|---|---|
in | any | Payload to forward with the balance result. |
Outputs#
| Port | Value | Description |
|---|---|---|
out | object | SOL balance for a wallet or account. |
out fields#
| Field | Type |
|---|---|
address | string |
lamports | string |
lamportsNumber | number |
sol | number |
solString | string |
context.slot | number |