Author

Topic: origin of tx_index in blockchain.info API (Read 675 times)

staff
Activity: 4284
Merit: 8808
May 12, 2016, 08:33:28 AM
#5
They've even previously reset the numbers for all transactions on their site. You shouldn't be using that information for anything.
legendary
Activity: 2053
Merit: 1356
aka tonikt
Is this index the same in every UTX database on every full node? So can I retrieve the tx_index from blockchain.info and then query with this index on any other index database and get the same transaction?
No. The common nodes use TxID as the index, then lookup for Vout inside the record.
member
Activity: 96
Merit: 18
Is this index the same in every UTX database on every full node? So can I retrieve the tx_index from blockchain.info and then query with this index on any other index database and get the same transaction?
staff
Activity: 3458
Merit: 6793
Just writing some code
Hi everybody

I am toying a bit with the json API from blockchain.info. When looking at some transactions I note this tx_index which is always the same for outputs, and different for each input of one tx. It is clear that this references the utx.
But where does this tx_index come from I wonder? Is it inside the blockchain or is it some blockchain.info specific indexing sitting in their index database?

Sincerely
It is blockchain.info's internal tx database. It is not inside the blockchain itself.
member
Activity: 96
Merit: 18
Hi everybody

I am toying a bit with the json API from blockchain.info. When looking at some transactions I note this tx_index which is always the same for outputs, and different for each input of one tx. It is clear that this references the utx.
But where does this tx_index come from I wonder? Is it inside the blockchain or is it some blockchain.info specific indexing sitting in their index database?

Sincerely
Jump to: