MCPcopy Index your code
hub / github.com/bitpay/bitcore / signrawtx

Method signrawtx

packages/bitcore-node/src/rpc.ts:176–186  ·  view source on GitHub ↗
(txs: string)

Source from the content-addressed store, hash-verified

174 }
175
176 async signrawtx(txs: string): Promise<any> {
177 await this.setWallet();
178
179 try {
180 const ret = await this.call('signrawtransactionwithwallet', [txs], this.walletName);
181 return ret;
182 } catch (e: any) {
183 if (!e.code || e.code != -32601) return Promise.reject(e);
184 return await this.call('signrawtransaction', [txs]);
185 }
186 }
187
188 async transaction(txid: string, block?: string): Promise<RPCTransaction> {
189 const args = [txid, true];

Callers 1

Calls 3

setWalletMethod · 0.95
callMethod · 0.95
rejectMethod · 0.45

Tested by

no test coverage detected