Beispiel #1
0
        public void TestRpcValidateAddressResult()
        {
            JObject json = TestUtils.RpcTestCases.Find(p => p.Name == nameof(RpcClient.ValidateAddressAsync).ToLower()).Response.Result;
            var     item = RpcValidateAddressResult.FromJson(json);

            Assert.AreEqual(json.ToString(), item.ToJson().ToString());
        }
Beispiel #2
0
        /// <summary>
        /// Verifies that the address is a correct NEO address.
        /// </summary>
        public async Task <RpcValidateAddressResult> ValidateAddressAsync(string address)
        {
            var result = await RpcSendAsync(GetRpcName(), address).ConfigureAwait(false);

            return(RpcValidateAddressResult.FromJson(result));
        }
Beispiel #3
0
 /// <summary>
 /// Verifies that the address is a correct NEO address.
 /// </summary>
 public RpcValidateAddressResult ValidateAddress(string address)
 {
     return(RpcValidateAddressResult.FromJson(RpcSend("validateaddress", address)));
 }