예제 #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");
            }
        }
예제 #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");
            }
        }