public async Task TestEstimateTxFeeForSendMany() { string fromAccount = "fiiitCPyohiEPn9q11AXCdvVDouoVvgojXBcVj"; SendManyModel[] om = new SendManyModel[] { new SendManyModel { Address = "fiiitCPyohiEPn9q11AXCdvVDouoVvgojXBcVj", Tag = "John", Amount = 100000000000 }, new SendManyModel { Address = "fiiitCPyohiEPn9q11AXCdvVDouoVvgojXBcVj", Tag = null, Amount = 100000000000 } }; string[] subtractFeeFromAmount = new string[] { "fiiitCPyohiEPn9q11AXCdvVDouoVvgojXBcVj", "fiiitCPyohiEPn9q11AXCdvVDouoVvgojXBcVj" }; ApiResponse response = await TransactionApi.EstimateTxFeeForSendMany(fromAccount, om, subtractFeeFromAmount); Assert.IsFalse(response.HasError); TxFeeForSend result = response.GetResult <TxFeeForSend>(); Assert.IsNotNull(result); }
public async Task TestSendMany() { string fromAccount = "1B7CXXyT2KQSHprzbprQDXnmkFEUTJU7yS"; SendManyModel[] om = new SendManyModel[] { new SendManyModel { Address = "1317nkscoSnkZnGdFMqVawjJv3xxU5vyfb", Tag = "John", Amount = 100000000000 }, new SendManyModel { Address = "1No2SahjFuguswiSvHv1DqotTRdMNs4FH", Tag = null, Amount = 100000000000 } }; string[] subtractFeeFromAmount = new string[] { "1317nkscoSnkZnGdFMqVawjJv3xxU5vyfb", "1No2SahjFuguswiSvHv1DqotTRdMNs4FH" }; ApiResponse response = await TransactionApi.SendMany(fromAccount, om, subtractFeeFromAmount); // Client Use Assert.IsFalse(response.HasError); string result = response.GetResult <string>(); Assert.IsNotNull(result); }