2014-08-19 16:28:58 +02:00
|
|
|
[
|
2016-09-28 19:36:36 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
2014-09-30 22:05:27 +02:00
|
|
|
"args": ["-create"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "blanktx.hex",
|
|
|
|
"description": "Creates a blank transaction"
|
2014-08-19 05:14:29 +02:00
|
|
|
},
|
2016-09-28 19:36:36 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args": ["-json","-create"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "blanktx.json",
|
|
|
|
"description": "Creates a blank transaction (output in json)"
|
2016-09-28 19:36:36 +02:00
|
|
|
},
|
2014-09-30 22:05:27 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args": ["-"],
|
2014-08-19 05:14:29 +02:00
|
|
|
"input": "blanktx.hex",
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "blanktx.hex",
|
|
|
|
"description": "Creates a blank transaction when nothing is piped into bitcoin-tx"
|
2014-08-20 05:15:58 +02:00
|
|
|
},
|
2016-09-28 19:36:36 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args": ["-json","-"],
|
|
|
|
"input": "blanktx.hex",
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "blanktx.json",
|
|
|
|
"description": "Creates a blank transaction when nothing is piped into bitcoin-tx (output in json)"
|
2016-09-28 19:36:36 +02:00
|
|
|
},
|
2014-09-30 22:05:27 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args": ["-", "delin=1"],
|
2014-08-20 05:15:58 +02:00
|
|
|
"input": "tx394b54bb.hex",
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "tt-delin1-out.hex",
|
|
|
|
"description": "Deletes a single input from a transaction"
|
2014-08-20 05:15:58 +02:00
|
|
|
},
|
2016-09-28 19:36:36 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args": ["-json", "-", "delin=1"],
|
|
|
|
"input": "tx394b54bb.hex",
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "tt-delin1-out.json",
|
|
|
|
"description": "Deletes a single input from a transaction (output in json)"
|
2016-09-28 19:36:36 +02:00
|
|
|
},
|
2014-09-30 22:05:27 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args": ["-", "delin=31"],
|
2014-08-20 05:15:58 +02:00
|
|
|
"input": "tx394b54bb.hex",
|
2016-10-04 19:02:06 +02:00
|
|
|
"return_code": 1,
|
|
|
|
"description": "Attempts to delete an input with a bad index from a transaction. Expected to fail."
|
2014-08-20 05:15:58 +02:00
|
|
|
},
|
2014-09-30 22:05:27 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args": ["-", "delout=1"],
|
2014-08-20 05:15:58 +02:00
|
|
|
"input": "tx394b54bb.hex",
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "tt-delout1-out.hex",
|
|
|
|
"description": "Deletes a single output from a transaction"
|
2014-08-20 05:15:58 +02:00
|
|
|
},
|
2016-09-28 19:36:36 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args": ["-json", "-", "delout=1"],
|
|
|
|
"input": "tx394b54bb.hex",
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "tt-delout1-out.json",
|
|
|
|
"description": "Deletes a single output from a transaction (output in json)"
|
2016-09-28 19:36:36 +02:00
|
|
|
},
|
2014-09-30 22:05:27 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args": ["-", "delout=2"],
|
2014-08-20 05:15:58 +02:00
|
|
|
"input": "tx394b54bb.hex",
|
2016-10-04 19:02:06 +02:00
|
|
|
"return_code": 1,
|
|
|
|
"description": "Attempts to delete an output with a bad index from a transaction. Expected to fail."
|
2014-08-20 05:15:58 +02:00
|
|
|
},
|
2014-09-30 22:05:27 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args": ["-", "locktime=317000"],
|
2014-08-20 05:15:58 +02:00
|
|
|
"input": "tx394b54bb.hex",
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "tt-locktime317000-out.hex",
|
|
|
|
"description": "Adds an nlocktime to a transaction"
|
2014-08-20 05:15:58 +02:00
|
|
|
},
|
2016-09-28 19:36:36 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args": ["-json", "-", "locktime=317000"],
|
|
|
|
"input": "tx394b54bb.hex",
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "tt-locktime317000-out.json",
|
|
|
|
"description": "Adds an nlocktime to a transaction (output in json)"
|
2016-09-28 19:36:36 +02:00
|
|
|
},
|
2014-09-30 22:05:27 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args":
|
|
|
|
["-create",
|
2014-08-20 05:15:58 +02:00
|
|
|
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
|
|
|
"in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",
|
|
|
|
"in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",
|
|
|
|
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
|
|
|
|
"outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "txcreate1.hex",
|
|
|
|
"description": "Creates a new transaction with three inputs and two outputs"
|
2014-09-14 08:01:51 +02:00
|
|
|
},
|
2016-09-28 19:36:36 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args":
|
|
|
|
["-json",
|
|
|
|
"-create",
|
|
|
|
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
|
|
|
"in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",
|
|
|
|
"in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",
|
|
|
|
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
|
|
|
|
"outaddr=4:1P8yWvZW8jVihP1bzHeqfE4aoXNX8AVa46"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "txcreate1.json",
|
|
|
|
"description": "Creates a new transaction with three inputs and two outputs (output in json)"
|
2016-09-28 19:36:36 +02:00
|
|
|
},
|
2014-09-30 22:05:27 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args": ["-create", "outscript=0:"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "txcreate2.hex",
|
|
|
|
"description": "Creates a new transaction with a single empty output script"
|
2014-12-24 02:35:40 +01:00
|
|
|
},
|
2016-09-28 19:36:36 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args": ["-json", "-create", "outscript=0:"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "txcreate2.json",
|
|
|
|
"description": "Creates a new transaction with a single empty output script (output in json)"
|
2016-09-28 19:36:36 +02:00
|
|
|
},
|
2014-12-24 02:35:40 +01:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args":
|
|
|
|
["-create",
|
|
|
|
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
|
|
|
|
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]",
|
2015-07-07 18:18:14 +02:00
|
|
|
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
|
2014-12-24 02:35:40 +01:00
|
|
|
"sign=ALL",
|
|
|
|
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "txcreatesign.hex",
|
|
|
|
"description": "Creates a new transaction with a single input and a single output, and then signs the transaction"
|
2015-06-29 20:14:43 +02:00
|
|
|
},
|
2016-09-28 19:36:36 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args":
|
|
|
|
["-json",
|
|
|
|
"-create",
|
|
|
|
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
|
|
|
|
"set=privatekeys:[\"5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf\"]",
|
|
|
|
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"76a91491b24bf9f5288532960ac687abb035127b1d28a588ac\"}]",
|
|
|
|
"sign=ALL",
|
|
|
|
"outaddr=0.001:193P6LtvS4nCnkDvM9uXn1gsSRqh4aDAz7"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "txcreatesign.json",
|
|
|
|
"description": "Creates a new transaction with a single input and a single output, and then signs the transaction (output in json)"
|
2016-09-28 19:36:36 +02:00
|
|
|
},
|
2015-06-29 20:14:43 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args":
|
|
|
|
["-create",
|
|
|
|
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
|
|
|
"outdata=4:badhexdata"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"return_code": 1,
|
|
|
|
"description": "Attempts to create a new transaction with one input and an output with malformed hex data. Expected to fail"
|
2015-06-29 20:14:43 +02:00
|
|
|
},
|
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args":
|
|
|
|
["-create",
|
|
|
|
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
|
|
|
"outdata=badhexdata"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"return_code": 1,
|
|
|
|
"description": "Attempts to create a new transaction with one input and an output with no value and malformed hex data. Expected to fail"
|
2015-06-29 20:14:43 +02:00
|
|
|
},
|
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args":
|
|
|
|
["-create",
|
|
|
|
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
|
|
|
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
|
|
|
|
"outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "txcreatedata1.hex",
|
|
|
|
"description": "Creates a new transaction with one input, one address output and one data output"
|
2015-06-29 20:14:43 +02:00
|
|
|
},
|
2016-09-28 19:36:36 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args":
|
|
|
|
["-json",
|
|
|
|
"-create",
|
|
|
|
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
|
|
|
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
|
|
|
|
"outdata=4:54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "txcreatedata1.json",
|
|
|
|
"description": "Creates a new transaction with one input, one address output and one data output (output in json)"
|
2016-09-28 19:36:36 +02:00
|
|
|
},
|
2015-06-29 20:14:43 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args":
|
|
|
|
["-create",
|
|
|
|
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
|
|
|
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
|
|
|
|
"outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "txcreatedata2.hex",
|
|
|
|
"description": "Creates a new transaction with one input, one address output and one data (zero value) output"
|
2016-06-07 17:37:35 +02:00
|
|
|
},
|
2016-09-28 19:36:36 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args":
|
|
|
|
["-json",
|
|
|
|
"-create",
|
|
|
|
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
|
|
|
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o",
|
|
|
|
"outdata=54686973204f505f52455455524e207472616e73616374696f6e206f7574707574207761732063726561746564206279206d6f646966696564206372656174657261777472616e73616374696f6e2e"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "txcreatedata2.json",
|
|
|
|
"description": "Creates a new transaction with one input, one address output and one data (zero value) output (output in json)"
|
2016-09-28 19:36:36 +02:00
|
|
|
},
|
2016-06-07 17:37:35 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args":
|
|
|
|
["-create",
|
|
|
|
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293",
|
|
|
|
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "txcreatedata_seq0.hex",
|
|
|
|
"description": "Creates a new transaction with one input with sequence number and one address output"
|
2016-06-07 17:37:35 +02:00
|
|
|
},
|
2016-09-28 19:36:36 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args":
|
|
|
|
["-json",
|
|
|
|
"-create",
|
|
|
|
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293",
|
|
|
|
"outaddr=0.18:13tuJJDR2RgArmgfv6JScSdreahzgc4T6o"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "txcreatedata_seq0.json",
|
|
|
|
"description": "Creates a new transaction with one input with sequence number and one address output (output in json)"
|
2016-09-28 19:36:36 +02:00
|
|
|
},
|
2016-06-07 17:37:35 +02:00
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args":
|
|
|
|
["01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000fdffffff0180a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac00000000",
|
|
|
|
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:1"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "txcreatedata_seq1.hex",
|
|
|
|
"description": "Adds a new input with sequence number to a transaction"
|
2016-09-28 19:36:36 +02:00
|
|
|
},
|
|
|
|
{ "exec": "./bitcoin-tx",
|
|
|
|
"args":
|
|
|
|
["-json",
|
|
|
|
"01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000fdffffff0180a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac00000000",
|
|
|
|
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:1"],
|
2016-10-04 19:02:06 +02:00
|
|
|
"output_cmp": "txcreatedata_seq1.json",
|
|
|
|
"description": "Adds a new input with sequence number to a transaction (output in json)"
|
2014-08-19 16:28:58 +02:00
|
|
|
}
|
|
|
|
]
|