(txs: string)
| 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]; |
no test coverage detected