Get SPL Token Balance logo

Catalog action Solana Onchain

Check a wallet's SPL token balance on Solana. Returns the raw token amount, human-readable balance, and token decimals. Supports any SPL token (USDC, BONK, etc.) on mainnet and devnet.

At a Glance

FieldValue
Action IDget-spl-token-balance
CategorySolana Onchain
ConnectorNot required
Requires gasNo
Funds movementNone declared
Tagssolana, spl, token, balance, query, read

Payload Schema

FieldTypeRequiredDescription
walletAddressstringYesSolana wallet address to check the balance for.
tokenMintAddressstringYesThe token's contract address on Solana. You can find this on the token's page on Solscan or Jupiter.
chainIdnumberYesSolana network (Mainnet or Devnet)

Result Schema

FieldTypeRequiredDescription
balancestringYesRaw token balance in smallest unit (e.g. '1500000' for 1.5 USDC)
formattedBalancestringYesHuman-readable balance (e.g. '1.5')
decimalsnumberYesToken decimal places
walletAddressstringNoWallet address that was checked.
tokenMintAddressstringNoThe token's contract address.
tokenAccountAddressstring | nullNoAssociated token account address holding the tokens, or null if no account exists
chainIdnumberNoSolana chain ID

Examples

json
{ "type": "get-spl-token-balance", "payload": { "walletAddress": "0x0000000000000000000000000000000000000000", "tokenMintAddress": "0x0000000000000000000000000000000000000000", "chainId": 7565164 }, "children": []}

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.

Ask a question... ⌘I