Changelly

Cryptocurrency

blockchain.info – Reading Bitcoin Raw Transaction

1 Mins read


I want to understand Bitcoin data structure. So i try to understand a raw transaction in json format.
When i checked the blockchain.info API documentation, i see that input structure is defined for transactions like this:

"prev_out":
{
    "hash":"a3e2bcc9a5f776112497a32b05f4b9e5b2405ed9",
    "value":"100000000",
    "tx_index":"12554260",
    "n":"2"
},
"script":"76a914641ad5051edd97029a003fe9efb29359fcee409d88ac"

But when I query a transaction from blockchain.info, it seems differently:

"prev_out":
{
    "spent":true,
    "tx_index":8845778,
    "type":0,
    "addr":"1CfD77hupeUvFwBPxZ2fA8iyWmVwQY22oh",
    "value":10212000000,
    "n":1,
    "script":"76a9147fe34b97aeff4ab754770be5c8f12e2e95332fd488ac"
 }

Is there any document that clearly explains these data fields?

My current wonders:

  1. What is the spent field?
  2. There is no hash field at queried transaction, there must be i think?
  3. What is type field?
  4. Which fields are signed? The signature is generated by which fields hash?



Source link

Related posts
Cryptocurrency

Shiba Inu gains over 30% in just two days as Kraken announces SHIB listing

2 Mins read
Shiba Inu (SHIB), a Dogecoin-inspired meme cryptocurrency, emerged as one of the best performers across traditional and crypto markets entering the new…
Cryptocurrency

Ethereum Prints Bullish Technical pattern, Why Close Above $4,500 Is Critical

1 Mins read
Ethereum gained pace above the $4,350 resistance against the US Dollar. ETH could accelerate higher if there is a clear break above…
Cryptocurrency

FC Porto Fan Token, Oversubscribed 1280x, is Hibs Next?

4 Mins read
This Hibernian F.C (HIB$) Official Fan Token offering, provides significant benefits, and opportunities to increase fan engagement through a series of tokenized…

Leave a Reply

Your email address will not be published. Required fields are marked *