Iota chainId problem

The other day I visited, which added IOTA to my networks in metamask.

As it automatically added IOTA to metamask, which Chain ID is 1074 or *** 432*** in hex.

Now I have a problem when i run :


because it returns:


… which is the same as Rinkeby.

This is problematic because in my code I check the current network, and this bypasses my check.

Whats wrong here?

Make sure you’ve changed your chain to IOTA in your wallet when you go to run Moralis.chainId.

When IOTA is the current chain, 0x432 is returned as expected from Moralis.chainId.

1 Like