Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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
You can’t perform that action at this time.