Nethereum / Nethereum.Playground

Compile and run Nethereum snippets on the browser
MIT License
28 stars 17 forks source link

Add example: How to calculate the transaction hash #29

Closed juanfranblanco closed 3 years ago

juanfranblanco commented 4 years ago

var transactionInput = new TransactionInput { From = account.Address, To = receiverAddress, Value = new HexBigInteger(0), Data = tx_data, Gas = new HexBigInteger(150000), GasPrice = new HexBigInteger(2000000000) }; var txnSigned = await web3.Eth.TransactionManager.SignTransactionAsync(transactionInput); var txnHash = TransactionUtils.CalculateTransactionHash(txnSigned);

and a smart contract sample using a FunctionMessage...