if the chaintype isn't found, getChainId will return -1.
static int getChainId({required EvmChain chaintype}) { return _chainDetails[chaintype]?.id ?? -1; }