bitcoinjs-lib/test/fixtures/transaction_builder.json
2014-08-18 08:54:45 +10:00

114 lines
2.9 KiB
JSON

{
"valid": {
"build": [
{
"description": "pubKeyHash 1:1 transaction",
"txid": "bd641f4b0aa8bd70189ab45e935c4762f0e1c49f294b4779d79887937b7cf42e",
"inputs": [
{
"index": 0,
"prevTx": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"privKeys": ["KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn"]
}
],
"outputs": [
{
"script": "OP_DUP OP_HASH160 aa4d7985c57e011a8b3dd8e0e5a73aaef41629c5 OP_EQUALVERIFY OP_CHECKSIG",
"value": 10000
}
]
},
{
"description": "2-of-2 P2SH multisig Transaction",
"txid": "8c500ce6eef6c78a10de923b68394cf31120151bdc4600e4b12de865defa9d24",
"inputs": [
{
"index": 0,
"prevTx": "4971f016798a167331bcbc67248313fbc444c6e92e4416efd06964425588f5cf",
"privKeys": ["91avARGdfge8E4tZfYLoxeJ5sGBdNJQH4kvjJoQFacbgwmaKkrx", "91avARGdfge8E4tZfYLoxeJ5sGBdNJQH4kvjJoQFacbgww7vXtT"],
"redeemScript": "OP_2 0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 04c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee51ae168fea63dc339a3c58419466ceaeef7f632653266d0e1236431a950cfe52a OP_2 OP_CHECKMULTISIG"
}
],
"outputs": [
{
"script": "OP_DUP OP_HASH160 faf1d99bf040ea9c7f8cc9f14ac6733ad75ce246 OP_EQUALVERIFY OP_CHECKSIG",
"value": 10000
}
]
}
]
},
"invalid": {
"build": [
{
"exception": "Transaction has no inputs",
"hex": "",
"outputs": [
{
"script": "",
"value": 1000
}
]
},
{
"exception": "Transaction has no outputs",
"hex": "",
"inputs": [
{
"hash": "",
"index": 0
}
]
},
{
"exception": "Transaction has no signatures",
"hex": "",
"inputs": [
{
"hash": "",
"index": 0
}
],
"outputs": [
{
"script": "",
"value": 1000
}
]
},
{
"exception": "Transaction is missing signatures",
"hex": "",
"inputs": [
{
"hash": "",
"index": 0
},
{
"hash": "",
"index": 1
}
],
"outputs": [
{
"script": "",
"value": 1000
}
],
"signatures": [
{
"wif": "",
"index": 0
}
]
}
],
"fromTransaction": [
{
"exception": "Transaction contains unsupported script types",
"hex": ""
}
]
}
}