Get Token Balance logo

Catalog action EVM Onchain

Check how much of a specific ERC20 token a wallet holds. Returns both the raw amount and a human-readable value. Optionally includes token metadata.

At a Glance

FieldValue
Action IDget-balance
CategoryEVM Onchain
ConnectorNot required
Requires gasNo
Funds movementNone declared
Tagsblockchain, evm, erc20, balance, query, read, portfolio, wallet

Payload Schema

FieldTypeRequiredDescription
tokenAddressstringYesERC20 token contract address
accountAddressstringYesAccount address to check balance for
chainIdnumberYesChain ID (1=Ethereum, 137=Polygon, 56=BSC, 8453=Base, etc.)
includeMetadatabooleanNoWhether to include token metadata (name, symbol, decimals)

Result Schema

FieldTypeRequiredDescription
balancestringYesRaw balance in smallest unit (wei)
formattedBalancestringYesHuman-readable balance with decimals
tokenAddressstringYesToken contract address
accountAddressstringYesAccount address
decimalsnumberNoToken decimals (included if includeMetadata is true)
symbolstringNoToken symbol (included if includeMetadata is true)
namestringNoToken name (included if includeMetadata is true)
blockNumbernumberYesBlock number at which balance was read

Examples

json
{ "type": "get-balance", "payload": { "tokenAddress": "0x0000000000000000000000000000000000000000", "accountAddress": "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