public void TestGrpc()
        {
            Channel channel = new Channel("localhost:6870", ChannelCredentials.Insecure);

            BlocksApi.BlocksApiClient client = new BlocksApi.BlocksApiClient(channel);
            BlockWithHeight           block  = client.GetBlock(new BlockRequest()
            {
                Height = -1
            });

            TestContext.WriteLine(block.ToString());
        }
Beispiel #2
0
        public void TestGrpcBlocksApiClient()
        {
            Channel channel = new Channel("mainnet-aws-fr-1.wavesnodes.com:6871", ChannelCredentials.Insecure);

            BlocksApi.BlocksApiClient client = new BlocksApi.BlocksApiClient(channel);
            BlockWithHeight           block  = client.GetBlock(new BlockRequest()
            {
                Height = -1
            });

            TestContext.WriteLine(block.ToString());
        }