Inputs to transactions refer to previously confirmed transactions and an index within, ie "The second output in transaction 01234567". This is what "txid:index" refers to.
still don't get it. how to get txid:index from bitcoind?
With 'bitcoind listunspent'.
Example output:
{
"txid" : "3bec01c0bf0f52f79043abfbe3ba2c21ae417ffea74bf152368418df21a1d939"
"vout" : 1,
[…]
},
{
"txid" : "9125d985a969a4c0a9cd7686a2d7e96cff886e55697ddc809639b3e690c558b8",
"vout" : 0,
[…]
},
[…]
]
The first entry refers to the second output in tx 3bec01c0bf0f52f79043abfbe3ba2c21ae417ffea74bf152368418df21a1d939 (59.3 BTC), the second entry refers to the first output in tx 9125d985a969a4c0a9cd7686a2d7e96cff886e55697ddc809639b3e690c558b8 (0.5 BTC) and so on. Try it with your wallet, you should be able to check in blockchain.info that all entries in your list appear as unspent, which they really are (unlike this example, where I just picked a couple of random txs).
The sum of amounts in all your unspent outputs is your balance. That's how bitcoind figures it out.