Node reference
Token balance
Read a token account
Read a token account
Part of Solana / Solana. This reference is generated from the node definitions shipped with Blokboard.
When to use it#
- Read the token balance of a Solana token account.
This node uses solana. Configure the runtime’s RPC route and check Test mode. For signing operations, review wallet safety.
Parameters#
| Parameter | Field type | Default | Description |
|---|---|---|---|
RPC URL (rpcUrl) | string | {{global.chains.solana.rpcUrl}} | Configured for Solana in workspace RPC settings. |
Commitment (commitment) | select | confirmed | |
Owner Wallet (ownerAddress) | string | {{global.main_wallet}} | Used with Mint Address. Leave empty if Token Account is set. |
Mint Address (mintAddress) | string | — | Optional when Token Account is set. |
Token Account (tokenAccountAddress) | string | — | Directly calls getTokenAccountBalance when supplied. |
On failure (onFailure) | select | stop | Choose whether a failed execution stops the workflow or only ends this path. |
Retry attempts (retryCount) | number | 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.
Token Account: 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; no declared maximum.
Inputs#
| Port | Value | Description |
|---|---|---|
in | any | Payload to forward with the token balance result. |
Outputs#
| Port | Value | Description |
|---|---|---|
out | object | SPL token balance for a token account or wallet plus mint. |
out fields#
| Field | Type | Description |
|---|---|---|
owner | string | |
mint | string | |
tokenAccount | string | |
amount | string | |
decimals | number | |
uiAmount | number | |
uiAmountString | string |
Use in a workflow#
Connect this node to the path that should execute it. Run a small example, inspect its actual output, and use the expression picker to select values for later nodes.
See expressions for mapping values, workflow basics for connections, and troubleshooting for failed runs.