Skip to content

Commit

Permalink
feat: add sendrawtransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
gridcat committed Jun 28, 2021
1 parent 0af3517 commit 7190743
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/RPC/Wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<TX>}
* @memberof Wallet
*/
public async sendRawTransaction(rawTransaction: string): Promise<TX> {
return this.call<TX>('sendrawtransaction', rawTransaction);
}
}

0 comments on commit 7190743

Please sign in to comment.