0

Looking at blockchain.info/tx/c52b....2b09?format=json, I see this:

[{
    "spent":true,
    "spending_outpoints":[
    {
        "tx_index":0,
        "n":0
    }
    ],
    "tx_index":0,
    "type":0,
    "addr":"1MLZEBnV8z7wKZnqUkkNWCaA7kohsvmkA2",
    "value":493599,
    "n":0,
    "script":"76a914df15522bd48e91e24d4ee94424ae0681ee7f1a1a88ac"
},
{
    "spent":false,
    "tx_index":0,
    "type":0,
    "addr":"3KcFQ3BxZzyPnq6VGW1LWjKnJZR6F3fYVS",
    "value":106862,
    "n":1,
    "script":"a914c48b6e8ee99bef36819e1d90365dea087075ba7187"
},
"..."
]

I've assumed that every output was "unspent" when it is created. Here, it looks as if it is spent directly when the output is created? What does that even mean? Is it maybe spent in another transaction in the same block?

Or is that attribute added "later" by blockchain.info to give the reader a bit more context?

1

Or is that attribute added "later" by blockchain.info to give the reader a bit more context?

I'm pretty sure that is what is happening.

If you look at that transaction in a different explorer, for example https://blockchair.com/bitcoin/transaction/c52b5df64f10463fbe4f46d7b9da3464449849b7e542d533575a927366b52b09 and click "raw tx" you'll see it doesn't include that information in the JSON.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.