Skip to content

Commit

Permalink
Merge pull request #17 from getsafle/broadcast-transaction
Browse files Browse the repository at this point in the history
Broadcast transaction
  • Loading branch information
sshubhamagg authored Aug 19, 2024
2 parents 21a374d + de53fcd commit f045e81
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@getsafle/vault-rootstack-controller",
"version": "1.0.1",
"name": "@getsafle/vault-rootstock-controller",
"version": "1.0.0",
"description": "rootstock controller for safle vault",
"main": "src/index.js",
"scripts": {
Expand Down
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 f045e81

Please sign in to comment.