Skip to content

Commit

Permalink
Implemented functionality to broadcast a transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Husienvora committed Aug 16, 2024
1 parent 8af86b7 commit 69aec4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
- Implemented functionality to sign a message
- Implemented functionality to get coin balance for a wallet
- Implemented functionality to get gass fees
- Implemented functionality to broadcast a transaction
6 changes: 5 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,11 @@ class KeyringController extends EventEmitter {
this.memStore.updateState({ isUnlocked: true });
this.emit("unlock");
}

/**
*
* Method to broadcast a transaction
*
*/
async sendTransaction(signedTx, web3) {
const receipt = await web3.eth.sendSignedTransaction(signedTx);
return { transactionDetails: receipt.transactionHash };
Expand Down

0 comments on commit 69aec4c

Please sign in to comment.