blokboard/ Open app

Node reference

Token balance

Read a token account

SolanasolanaGetTokenBalance

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#

ParameterField typeDefaultDescription
RPC URL (rpcUrl)string{{global.chains.solana.rpcUrl}}Configured for Solana in workspace RPC settings.
Commitment (commitment)selectconfirmed
Owner Wallet (ownerAddress)string{{global.main_wallet}}Used with Mint Address. Leave empty if Token Account is set.
Mint Address (mintAddress)stringOptional when Token Account is set.
Token Account (tokenAccountAddress)stringDirectly calls getTokenAccountBalance when supplied.
On failure (onFailure)selectstopChoose whether a failed execution stops the workflow or only ends this path.
Retry attempts (retryCount)number0How 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#

PortValueDescription
inanyPayload to forward with the token balance result.

Outputs#

PortValueDescription
outobjectSPL token balance for a token account or wallet plus mint.

out fields#

FieldTypeDescription
ownerstring
mintstring
tokenAccountstring
amountstring
decimalsnumber
uiAmountnumber
uiAmountStringstring

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.