public static string RpcByNetwork(TezosNetwork network) { switch (network) { case TezosNetwork.Mainnet: return(MainnetRpc); case TezosNetwork.Alphanet: return(AlphanetRpc); default: throw new NotSupportedException("Network not supported"); } }
public TzScanApi(Currency currency, TezosNetwork network) { _currency = currency; switch (network) { case TezosNetwork.Mainnet: _rpcProvider = MainnetRpc; _apiBaseUrl = Mainnet; break; case TezosNetwork.Alphanet: _rpcProvider = AlphanetRpc; _apiBaseUrl = Alphanet; break; default: throw new NotSupportedException("Network not supported"); } }