Skip to content

@token

Resolve a token symbol to its contract address on the current chain.

Returns: address

@token(tokenSymbolOrAddress)
Name Type Description
tokenSymbolOrAddress token-symbol Token symbol (e.g. DAI) or address
# Resolve a token symbol
set $dai @token(DAI)
# Resolve the native token
set $native @token(XDAI)