coinTypeToChainId static method

int? coinTypeToChainId(
  1. int coinType
)

Implementation

static int? coinTypeToChainId(int coinType) {
  if (coinType & 0x80000000 != 0) {
    return coinType & 0x7fffffff;
  }
  if (coinType == 60) return 1; // Ethereum mainnet.
  return null;
}