get_tokens_metadata_dict

Documentation for eth_defi.gmx.contracts.get_tokens_metadata_dict function.

get_tokens_metadata_dict(chain)

Get full token metadata for a specific network from GMX API.

Returns address -> {symbol, decimals, synthetic} mapping. This avoids expensive contract calls for each token.

Parameters

chain (str) – Network name

Returns

Dictionary mapping token addresses to metadata

Raises

ValueError – If chain is not supported or API request fails

Return type

dict[str, dict]