public Task <string> SendTransactionAsync(string contractAddress,
                                           TContractMessage functionMessage    = null,
                                           CancellationToken cancellationToken = default(CancellationToken))
 {
     return(_transactionSenderHandler.SendTransactionAsync(contractAddress,
                                                           functionMessage,
                                                           cancellationToken));
 }
        public async Task <TransactionReceipt> SendTransactionAsync(string contractAddress, TFunctionMessage functionMessage = null, CancellationTokenSource cancellationTokenSource = null)
        {
            if (functionMessage == null)
            {
                functionMessage = new TFunctionMessage();
            }
            SetEncoderContractAddress(contractAddress);
            var transactionHash = await _contractTransactionSender.SendTransactionAsync(contractAddress, functionMessage).ConfigureAwait(false);

            return(await TransactionManager.TransactionReceiptService.PollForReceiptAsync(transactionHash, cancellationTokenSource).ConfigureAwait(false));
        }
Example #3
0
 public Task <string> SendTransactionAsync(string contractAddress, TContractMessage functionMessage = null)
 {
     return(_transactionSenderHandler.SendTransactionAsync(contractAddress, functionMessage));
 }