diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f4851d..8b3d8b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index c65dde4..432e249 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/index.js b/src/index.js index b781663..83637dc 100644 --- a/src/index.js +++ b/src/index.js @@ -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 };