Ejemplo n.º 1
0
        public Task <byte[]> GetTransactionHashQueryAsync(string to, BigInteger value, byte[] data, byte operation, BigInteger safeTxGas, BigInteger baseGas, BigInteger gasPrice, string gasToken, string refundReceiver, BigInteger nonce, BlockParameter blockParameter = null)
        {
            var getTransactionHashFunction = new GetTransactionHashFunction();

            getTransactionHashFunction.To             = to;
            getTransactionHashFunction.Value          = value;
            getTransactionHashFunction.Data           = data;
            getTransactionHashFunction.Operation      = operation;
            getTransactionHashFunction.SafeTxGas      = safeTxGas;
            getTransactionHashFunction.BaseGas        = baseGas;
            getTransactionHashFunction.GasPrice       = gasPrice;
            getTransactionHashFunction.GasToken       = gasToken;
            getTransactionHashFunction.RefundReceiver = refundReceiver;
            getTransactionHashFunction.Nonce          = nonce;

            return(ContractHandler.QueryAsync <GetTransactionHashFunction, byte[]>(getTransactionHashFunction, blockParameter));
        }
Ejemplo n.º 2
0
 public Task <byte[]> GetTransactionHashQueryAsync(GetTransactionHashFunction getTransactionHashFunction, BlockParameter blockParameter = null)
 {
     return(ContractHandler.QueryAsync <GetTransactionHashFunction, byte[]>(getTransactionHashFunction, blockParameter));
 }