(txid: string, block?: string)
| 186 | } |
| 187 | |
| 188 | async transaction(txid: string, block?: string): Promise<RPCTransaction> { |
| 189 | const args = [txid, true]; |
| 190 | if (block) { |
| 191 | args.push(block); |
| 192 | } |
| 193 | return (await this.call('getrawtransaction', args)) as RPCTransaction; |
| 194 | } |
| 195 | |
| 196 | async sendtoaddress(address: string, value: string | number) { |
| 197 | await this.setWallet(); |