getSolanaChain static method

ChainInfo? getSolanaChain(
  1. int chainId
)

Implementation

static ChainInfo? getSolanaChain(int chainId) {
  try {
    return ParticleChains.values.firstWhere(
        (element) => element.chainType == 'solana' && element.id == chainId);
  } catch (e) {
    return null;
  }
}