Guest User

Untitled

a guest
Feb 18th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. web3.eth.accounts.signTransaction(transactionObject, process.env.WALLET_PRIVATE_KEY, function (error, signedTx) {
  2. if (error) {
  3. log(`${error}`.red);
  4. } else {
  5. web3.eth.sendSignedTransaction(signedTx.rawTransaction)
  6. .on('confirmation', function (number) {//dostuff
  7. log(`Success: ${number}`.green);
  8.  
  9. });
  10.  
  11. // Note this address. It will be used to create contract instance from Angular 5 application.
  12. //console.log("contract deployed to", result.options.address);
  13. }
  14. }).catch(function(err){
  15. log(`${err}`.red);
  16. });
Add Comment
Please, Sign In to add comment