@token.symbol
Return the symbol of a token.
Returns: string
Syntax
Section titled “Syntax”@token.symbol(tokenSymbol)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
tokenSymbol | token-symbol | Token address (or symbol) |
Examples
Section titled “Examples”# Read the symbol of a token by addressset $symbol @token.symbol(0x44fA8E6f47987339850636F88629646662444217)
# The native token symbolprint @token.symbol(0x0000000000000000000000000000000000000000)See Also
Section titled “See Also”- @token — resolve a symbol to its address (the inverse lookup)
- @token.decimals