Пример #1
0
        public async Task GetMethodTestAsync()
        {
            await _substrateClient.ConnectAsync();

            var result = await _substrateClient.GetMethodAsync <string>("system_name");

            Assert.AreEqual("Substrate Node", result);

            await _substrateClient.CloseAsync();
        }
Пример #2
0
        public async Task GetMethodSystemNameTestAsync()
        {
            await _substrateClient.ConnectAsync();

            var result = await _substrateClient.GetMethodAsync <string>("system_name");

            Assert.AreEqual("Parity Polkadot", result);

            await _substrateClient.CloseAsync();
        }
Пример #3
0
        public async Task GetMethodChainNameTestAsync()
        {
            await _substrateClient.ConnectAsync();

            var result = await _substrateClient.GetMethodAsync <string>("system_chain");

            Assert.AreEqual("Development", result);

            await _substrateClient.CloseAsync();
        }