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()); }
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()); }