Example #1
0
        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");
            }
        }
Example #2
0
        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");
            }
        }