get_token_address_normalized

Documentation for eth_defi.gmx.contracts.get_token_address_normalized function.

get_token_address_normalized(chain, symbol, web3=None)

Get address for a specific token on a network, with proper normalization for GMX.

This function handles the special case where ETH and WETH are treated as the same token on GMX protocol, as well as AVAX and WAVAX on Avalanche.

Parameters
  • chain (str) – Network name

  • symbol (str) – Token symbol (ETH/WETH will be normalized)

  • web3 (Optional[web3.main.Web3]) – Web3 connection instance (optional, not required for API calls)

Returns

Token address or None if not found

Return type

Optional[str]