|
1 | 1 | [ |
2 | 2 | { "exec": "./bitcoin-tx", |
3 | | - "args": ["-create"], |
4 | | - "output_cmp": "blanktx.hex", |
5 | | - "description": "Creates a blank transaction" |
| 3 | + "args": ["-create", "nversion=1"], |
| 4 | + "output_cmp": "blanktxv1.hex", |
| 5 | + "description": "Creates a blank v1 transaction" |
6 | 6 | }, |
7 | 7 | { "exec": "./bitcoin-tx", |
8 | 8 | "args": ["-json","-create"], |
9 | | - "output_cmp": "blanktx.json", |
| 9 | + "output_cmp": "blanktxv2.json", |
10 | 10 | "description": "Creates a blank transaction (output in json)" |
11 | 11 | }, |
12 | 12 | { "exec": "./bitcoin-tx", |
13 | 13 | "args": ["-"], |
14 | | - "input": "blanktx.hex", |
15 | | - "output_cmp": "blanktx.hex", |
| 14 | + "input": "blanktxv2.hex", |
| 15 | + "output_cmp": "blanktxv2.hex", |
16 | 16 | "description": "Creates a blank transaction when nothing is piped into bitcoin-tx" |
17 | 17 | }, |
18 | 18 | { "exec": "./bitcoin-tx", |
19 | 19 | "args": ["-json","-"], |
20 | | - "input": "blanktx.hex", |
21 | | - "output_cmp": "blanktx.json", |
| 20 | + "input": "blanktxv2.hex", |
| 21 | + "output_cmp": "blanktxv2.json", |
22 | 22 | "description": "Creates a blank transaction when nothing is piped into bitcoin-tx (output in json)" |
23 | 23 | }, |
24 | 24 | { "exec": "./bitcoin-tx", |
|
103 | 103 | "description": "Creates a new transaction with a single empty output script (output in json)" |
104 | 104 | }, |
105 | 105 | { "exec": "./bitcoin-tx", |
106 | | - "args": ["01000000000100000000000000000000000000"], |
| 106 | + "args": ["02000000000100000000000000000000000000"], |
107 | 107 | "output_cmp": "txcreate2.hex", |
108 | 108 | "description": "Parses a transation with no inputs and a single output script" |
109 | 109 | }, |
110 | 110 | { "exec": "./bitcoin-tx", |
111 | | - "args": ["-json", "01000000000100000000000000000000000000"], |
| 111 | + "args": ["-json", "02000000000100000000000000000000000000"], |
112 | 112 | "output_cmp": "txcreate2.json", |
113 | 113 | "description": "Parses a transation with no inputs and a single output script (output in json)" |
114 | 114 | }, |
115 | 115 | { "exec": "./bitcoin-tx", |
116 | 116 | "args": |
117 | | - ["-create", |
| 117 | + ["-create", "nversion=1", |
118 | 118 | "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", |
119 | 119 | "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]", |
120 | 120 | "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", |
121 | 121 | "sign=ALL", |
122 | 122 | "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], |
123 | | - "output_cmp": "txcreatesign.hex", |
124 | | - "description": "Creates a new transaction with a single input and a single output, and then signs the transaction" |
| 123 | + "output_cmp": "txcreatesignv1.hex", |
| 124 | + "description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction" |
125 | 125 | }, |
126 | 126 | { "exec": "./bitcoin-tx", |
127 | 127 | "args": |
128 | 128 | ["-json", |
129 | | - "-create", |
| 129 | + "-create", "nversion=1", |
130 | 130 | "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", |
131 | 131 | "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]", |
132 | 132 | "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", |
133 | 133 | "sign=ALL", |
134 | 134 | "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], |
135 | | - "output_cmp": "txcreatesign.json", |
136 | | - "description": "Creates a new transaction with a single input and a single output, and then signs the transaction (output in json)" |
| 135 | + "output_cmp": "txcreatesignv1.json", |
| 136 | + "description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction (output in json)" |
| 137 | + }, |
| 138 | + { "exec": "./bitcoin-tx", |
| 139 | + "args": |
| 140 | + ["-create", |
| 141 | + "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", |
| 142 | + "set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]", |
| 143 | + "set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]", |
| 144 | + "sign=ALL", |
| 145 | + "outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"], |
| 146 | + "output_cmp": "txcreatesignv2.hex", |
| 147 | + "description": "Creates a new transaction with a single input and a single output, and then signs the transaction" |
137 | 148 | }, |
138 | 149 | { "exec": "./bitcoin-tx", |
139 | 150 | "args": |
|
163 | 174 | { "exec": "./bitcoin-tx", |
164 | 175 | "args": |
165 | 176 | ["-json", |
166 | | - "-create", |
| 177 | + "-create", "nversion=1", |
167 | 178 | "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", |
168 | 179 | "outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o", |
169 | 180 | "outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"], |
170 | 181 | "output_cmp": "txcreatedata1.json", |
171 | | - "description": "Creates a new transaction with one input, one address output and one data output (output in json)" |
| 182 | + "description": "Creates a new v1 transaction with one input, one address output and one data output (output in json)" |
172 | 183 | }, |
173 | 184 | { "exec": "./bitcoin-tx", |
174 | 185 | "args": |
|
0 commit comments