Skip to content

Commit 4f9c092

Browse files
authored
code snippet changed
1 parent ca8ded4 commit 4f9c092

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ const transactionParams = {
7474
web3.eth.accounts.signTransaction = keychainWeb3.signTransaction.bind(web3);
7575
const keychain = new Keychain();
7676
keychain.selectKey()
77-
.then(publicKey => web3.eth.accounts.signTransaction(transactionParams, publicKey));
77+
.then(publicKey => web3.eth.accounts.signTransaction(transactionParams, publicKey))
78+
.then(result => {
79+
console.log('result.rawTransaction:', result.rawTransaction);
80+
console.log('Send signed transaction with web3.eth.sendSignedTransaction(result.rawTransaction)')
81+
});
7882
```
7983

8084
`signTransaction` with KeyChain in action

0 commit comments

Comments
 (0)