Skip to content

Commit

Permalink
fix createrawtransaction + generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
MorrisonWill committed Jan 20, 2023
1 parent 18baf54 commit b6d15d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ export default class BitcoinRPC {
* Create a transaction spending the given inputs and creating new outputs.
* https://developer.bitcoin.org/reference/rpc/createrawtransaction.html
*/
async createrawtransaction(inputs: Array<{txid: string, vout: number, sequence?: number}>, output: Array<{address: number} | {address: string} | {data: string}>, locktime?: number, replaceable?: boolean) {
async createrawtransaction(inputs: Array<{txid: string, vout: number, sequence?: number}>, output: Array<{[address: string]: number} | {[address: string]: string} | {data: string}>, locktime?: number, replaceable?: boolean) {
return await this.request("createrawtransaction", [inputs, output, locktime, replaceable]);
}

Expand Down

0 comments on commit b6d15d9

Please sign in to comment.