From 7190743698630cbdd66aa1ff6ec392535e960c56 Mon Sep 17 00:00:00 2001 From: Grid Cat Date: Mon, 28 Jun 2021 12:48:02 +0200 Subject: [PATCH] feat: add sendrawtransaction --- src/RPC/Wallet.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/RPC/Wallet.ts b/src/RPC/Wallet.ts index c8ac446..b5f46df 100644 --- a/src/RPC/Wallet.ts +++ b/src/RPC/Wallet.ts @@ -701,4 +701,15 @@ export class Wallet extends RPCBase { comment, ); } + + /** + * Submits raw transaction (serialized, hex-encoded) to local node and network + * + * @param {string} rawTransaction - raw transaction (serialized, hex-encoded) + * @returns {Promise} + * @memberof Wallet + */ + public async sendRawTransaction(rawTransaction: string): Promise { + return this.call('sendrawtransaction', rawTransaction); + } }