Skip to content

@token.symbol

Return the symbol of a token.

Returns: string

@token.symbol(tokenSymbol)
NameTypeDescription
tokenSymboltoken-symbolToken address (or symbol)
# Read the symbol of a token by address
set $symbol @token.symbol(0x44fA8E6f47987339850636F88629646662444217)
# The native token symbol
print @token.symbol(0x0000000000000000000000000000000000000000)