[SOLVED]What's the graceful way to get the current mainnet?

I want to extract the current mainnet name and native token symbol, like ETH or MATIC or BNB, etc.

You can use useNativeBalance to get the native token data like symbol and name, and useChain to get the current chain

1 Like

Got it.

  const { nativeToken } = useNativeBalance();
  const { chain } = useChain();
1 Like