Skip to content

@token.balance

Fetch the token balance of an address in base units.

Returns: number

@token.balance(tokenSymbol holder)
Name Type Description
tokenSymbol token-symbol Token symbol (e.g. DAI) or address
holder address Address to query
# Query a token balance
set $bal @token.balance(DAI @token(DAI))