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.
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
json{ "type": "get-sol-balance", "payload": { "address": "0x0000000000000000000000000000000000000000", "chainId": 7565164 }, "children": []}
bashcurl -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": "0x0000000000000000000000000000000000000000", "chainId": 7565164 }}'
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.
