I am writing some code that will take new transactions from the p2p network and do a basic 0 confirmation validation on them.
I am testing this with the blockchain api.
If I see a new transaction, for example:
http://blockchain.info/rawtx/af6b257b03aada61f0d1c05490166df5e730408ec59627c68914cc66f5eeb63dI want to walk the inputs. Take the first input returned from the above url : {"prev_out":{"n":1,"value":899999,"addr":"1HVpyjYEPwQhvRQ3dL8tGe9kiydti616sX","tx_index":54344920,"type":0}}
What is tx_index in this case? Where is this generated from?
If I look up this tx index in blockchain:
https://blockchain.info/rawtx/54344920Is the correct procedure to verify that the address 1HVpyjYEPwQhvRQ3dL8tGe9kiydti616sX did in fact receive the correct value more or equal to 899999 satoshi?
Am I missing anything else very important in this checkingThank you in advance.