149 lines
5.8 KiB
JSON
149 lines
5.8 KiB
JSON
[
|
|
{ "exec": "./agrarian-tx",
|
|
"args": ["-create"],
|
|
"output_cmp": "blanktxv1.hex",
|
|
"description": "Creates a blank v1 transaction"
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args": ["-json","-create", "nversion=1"],
|
|
"output_cmp": "blanktxv1.json",
|
|
"description": "Creates a blank v1 transaction (output in json)"
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args": ["-"],
|
|
"input": "blanktxv1.hex",
|
|
"output_cmp": "blanktxv1.hex",
|
|
"description": "Creates a blank transaction when nothing is piped into agrarian-tx"
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args": ["-", "delin=1"],
|
|
"input": "tx394b54bb.hex",
|
|
"output_cmp": "tt-delin1-out.hex",
|
|
"description": "Deletes a single input from a transaction"
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args": ["-json", "-", "delin=1"],
|
|
"input": "tx394b54bb.hex",
|
|
"output_cmp": "tt-delin1-out.json",
|
|
"description": "Deletes a single input from a transaction (output in json)"
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args": ["-", "delin=31"],
|
|
"input": "tx394b54bb.hex",
|
|
"return_code": 1,
|
|
"error_txt": "error: Invalid TX input index '31'",
|
|
"description": "Attempts to delete an input with a bad index from a transaction. Expected to fail."
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args": ["-", "delout=1"],
|
|
"input": "tx394b54bb.hex",
|
|
"output_cmp": "tt-delout1-out.hex",
|
|
"description": "Deletes a single output from a transaction"
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args": ["-json", "-", "delout=1"],
|
|
"input": "tx394b54bb.hex",
|
|
"output_cmp": "tt-delout1-out.json",
|
|
"description": "Deletes a single output from a transaction (output in json)"
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args": ["-", "delout=2"],
|
|
"input": "tx394b54bb.hex",
|
|
"return_code": 1,
|
|
"error_txt": "error: Invalid TX output index '2'",
|
|
"description": "Attempts to delete an output with a bad index from a transaction. Expected to fail."
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args": ["-", "locktime=317000"],
|
|
"input": "tx394b54bb.hex",
|
|
"output_cmp": "tt-locktime317000-out.hex",
|
|
"description": "Adds an nlocktime to a transaction"
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args": ["-json", "-", "locktime=317000"],
|
|
"input": "tx394b54bb.hex",
|
|
"output_cmp": "tt-locktime317000-out.json",
|
|
"description": "Adds an nlocktime to a transaction (output in json)"
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args":
|
|
["-create",
|
|
"outaddr=1"],
|
|
"return_code": 1,
|
|
"error_txt": "error: TX output missing separator",
|
|
"description": "Malformed outaddr argument (no address specified). Expected to fail."
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args":
|
|
["-create",
|
|
"outaddr=1:DPvuYbbib66zreC6HNNQgUKzF3jnMmxk71:garbage"],
|
|
"return_code": 1,
|
|
"error_txt": "error: invalid TX output address",
|
|
"description": "Malformed outaddr argument (too many separators). Expected to fail."
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args":
|
|
["-create",
|
|
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
|
"in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",
|
|
"in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",
|
|
"outaddr=0.18:DPvuYbbib66zreC6HNNQgUKzF3jnMmxk71",
|
|
"outaddr=4:D72dLgywmL73JyTwQBfuU29CADz9yCJ99v"],
|
|
"output_cmp": "txcreate1.hex",
|
|
"description": "Creates a new transaction with three inputs and two outputs"
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args":
|
|
["-json",
|
|
"-create",
|
|
"in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0",
|
|
"in=bf829c6bcf84579331337659d31f89dfd138f7f7785802d5501c92333145ca7c:18",
|
|
"in=22a6f904655d53ae2ff70e701a0bbd90aa3975c0f40bfc6cc996a9049e31cdfc:1",
|
|
"outaddr=0.18:DPvuYbbib66zreC6HNNQgUKzF3jnMmxk71",
|
|
"outaddr=4:D72dLgywmL73JyTwQBfuU29CADz9yCJ99v"],
|
|
"output_cmp": "txcreate1.json",
|
|
"description": "Creates a new transaction with three inputs and two outputs (output in json)"
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args": ["-create", "outscript=0:"],
|
|
"output_cmp": "txcreate2.hex",
|
|
"description": "Creates a new transaction with a single empty output script"
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args": ["-json", "-create", "outscript=0:"],
|
|
"output_cmp": "txcreate2.json",
|
|
"description": "Creates a new transaction with a single empty output script (output in json)"
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args": ["01000000000100000000000000000000000000"],
|
|
"output_cmp": "txcreate2.hex",
|
|
"description": "Parses a transaction with no inputs and a single output script"
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args": ["-json", "01000000000100000000000000000000000000"],
|
|
"output_cmp": "txcreate2.json",
|
|
"description": "Parses a transaction with no inputs and a single output script (output in json)"
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args": ["-create", "outscript=0:OP_DROP", "nversion=1"],
|
|
"output_cmp": "txcreatescript1.hex",
|
|
"description": "Create a new transaction with a single output script (OP_DROP)"
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args": ["-json", "-create", "outscript=0:OP_DROP", "nversion=1"],
|
|
"output_cmp": "txcreatescript1.json",
|
|
"description": "Create a new transaction with a single output script (OP_DROP) (output as json)"
|
|
},
|
|
{ "exec": "./agrarian-tx",
|
|
"args":
|
|
["-create",
|
|
"in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0",
|
|
"set=privatekeys:[\"891ns7GR4owBiozmFa8jDSaJWNZ2q4XoSYdUS2kSNuKJ9BaxLkC\"]",
|
|
"set=prevtxs:[{\"txid\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\",\"vout\":0,\"scriptPubKey\":\"4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485\"}]",
|
|
"sign=ALL",
|
|
"outaddr=0.001:D72dLgywmL73JyTwQBfuU29CADz9yCJ99v"],
|
|
"output_cmp": "txcreatesign.hex",
|
|
"description": "Creates a new transaction with a single input and a single output, and then signs the transaction"
|
|
}
|
|
]
|