Created
May 15, 2019 22:09
-
-
Save totiz/3add2b1f8ff11291d2d6532bdfae9643 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sign ด้วย Private key | |
const signedTx = await web3.eth.accounts.signTransaction(rawTransaction, privateKey) | |
console.log('Signed Transaction', signedTx) | |
const receipt = await web3.eth.sendSignedTransaction(signedTx.rawTransaction) | |
console.log("Transaction receipt: ", receipt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment