I'm trying to get the outpoint for a transaction but I don't find how to.
The pages here and here look like saying that the outpoint must have 36 characters, of what 32 are the TXID and 4 are the vout.
However I can't find any example or further information about how to get/calculate it. I'm trying with bitcoin-cli listunspent
and it gave me:
[
{
"txid" : "4bbf676731987cce1e4639ec28d1219f065ab2aa5e9deb323c0b56bd0482d499",
"vout" : 0,
"address" : "1CfdQ5eHhPmUPemNStYmSG4RTYEq2Hc1a2",
"account" : "",
"scriptPubKey" : "76a9147ff792d99c99e5d89b8dbb54a5f962ccaeec404088ac",
"amount" : 0.00100000,
"confirmations" : 1866,
"spendable" : true
}
]
The txid is 65 characters long, and the vout is 1 character long (should I left-pad it to 4 characters? If yes, what happens after 10.000?)
Or I am not understanding anything? :s In this case, please provide me reliable and complete sources about this matter, as the docs seems to be very superficial about it.
I'm using bitcoin-cli.