Get Balance for One Token logo

Catalog action Blockchain Data

Look up a wallet's balance for a specific token. Faster than fetching all balances when you only need one. Use a contract address for ERC-20 tokens or 'native' for ETH/MATIC. Returns balance and USD value.

At a Glance

FieldValue
Action IDsim-dune-get-single-token-balance
CategoryBlockchain Data
ConnectorNot required
Requires gasNo
Funds movementNone declared
Tagssim-dune, blockchain, wallet, balance, token, single, erc20, native, efficient, check, read

Payload Schema

FieldTypeRequiredDescription
addressstringYesWallet address to get balance for
tokenAddressstringYesToken contract address (use 'native' for native asset like ETH)
chainIdnumberYesChain ID (required - single chain query)

Result Schema

FieldTypeRequiredDescription
addressstringYesWallet address queried
balancesarrayYesToken balance (single item array)
totalValueUsdnumberNoUSD value of the token balance
warningsarrayNoAny warnings from the provider

Examples

json
{ "type": "sim-dune-get-single-token-balance", "payload": { "address": "0x0000000000000000000000000000000000000000", "tokenAddress": "0x0000000000000000000000000000000000000000", "chainId": 8453 }, "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