<blockquote>
  <p>Why is this different?</p>
</blockquote>

<p>Blockchain.info has an API that provides the same data, but not necessarily formatted in the exact same way. When bitcoin nodes talk to each other, they must use the protocol as specified in the link you gave, but the Blockchain.info API is just a utility for getting some data about the contents of the block chain. </p>

<blockquote>
  <p>Is blockchain.info not following the Bitcoin protocol for transactions on their json messages?</p>
</blockquote>

<p>In their API, technically, no. I'm sure they have more than a few nodes running, though, which do follow the bitcoin protocol. Their API can call upon these nodes and a few database to return the JSON with the requested info. </p>

CC BY-SA 3.0
2014-10-30T03:15:24.730Z
2014-10-30T03:15:24.730Z
morsecoder
<p>if you follow <a href="https://blockchain.info/address/1C4kYhyLftmkn48YarSoLupxHfYFo8kp64?format=json" rel="nofollow">this</a> link, you will see a specific bitcoin address. If you look closely at the <code>prev_out</code> field, it is <em>not</em> an outpoint structure. Inside of the <a href="https://en.bitcoin.it/wiki/Protocol_specification#tx" rel="nofollow">protocol specification under transactions</a>, you can find the outpoint structure. </p>

<p>The outpoint structure is: </p>

<pre><code>Field Size Description  Data type   Comments
32  hash    char[32]    The hash of the referenced transaction.
4   index   uint32_t    The index of the specific output in the transaction. The first output is 0, etc.
</code></pre>

<p>Where as <code>prev_out</code> in the above query is structure as: </p>

<pre><code>prev_out:{"spent":true,"tx_index":50341289,"type":0,"addr":"15e2tHrbiUd4RxnBmHKYorMysyKtk1ohXF","value":2000000,"n":0,"script":"76a91432e17777e35dedafd578ffd90fa21ea8835dd50e88ac"}
</code></pre>

<p>Why is this different? What am I misunderstanding? Is blockchain.info not following the Bitcoin protocol for transactions on their json messages? </p>

<transactions><development><blockchain.info>
Difference between Outpoint structure returned from Blockchain.info and what is in the Protocol Specification
Chris Stewart
# Difference between Outpoint structure returned from Blockchain.info and what is in the Protocol Specification

(Asked by: username_0 on 2014-10-30)

if you follow [this](https://blockchain.info/address/1C4kYhyLftmkn48YarSoLupxHfYFo8kp64?format=json) link, you will see a specific bitcoin address. If you look closely at the `prev_out` field, it is *not* an outpoint structure. Inside of the [protocol specification under transactions](https://en.bitcoin.it/wiki/Protocol_specification#tx), you can find the outpoint structure.

The outpoint structure is:

```
Field Size Description  Data type   Comments
32  hash    char[32]    The hash of the referenced transaction.
4   index   uint32_t    The index of the specific output in the transaction. The first output is 0, etc.

```

Where as `prev_out` in the above query is structure as:

```
prev_out:{"spent":true,"tx_index":50341289,"type":0,"addr":"15e2tHrbiUd4RxnBmHKYorMysyKtk1ohXF","value":2000000,"n":0,"script":"76a91432e17777e35dedafd578ffd90fa21ea8835dd50e88ac"}

```

Why is this different? What am I misunderstanding? Is blockchain.info not following the Bitcoin protocol for transactions on their json messages?

**Tags:** transactions, development, blockchain.info


---

## 1 answers

### Answer by username_1 on 2014-10-30. Score: 3 | Accepted answer

> Why is this different?

Blockchain.info has an API that provides the same data, but not necessarily formatted in the exact same way. When bitcoin nodes talk to each other, they must use the protocol as specified in the link you gave, but the Blockchain.info API is just a utility for getting some data about the contents of the block chain.

> Is blockchain.info not following the Bitcoin protocol for transactions on their json messages?

In their API, technically, no. I'm sure they have more than a few nodes running, though, which do follow the bitcoin protocol. Their API can call upon these nodes and a few database to return the JSON with the requested info.


---

