Hello !
I've some questions about the vout of a transaction, and to be more precise, about scriptPubKey.
As I can see, a typical output transaction looks like this :
{
"value" : 0.00000000,
"n" : 1,
"scriptPubKey" : {
"asm" : "OP_DUP OP_HASH160 eadb51503d0c15d2d36c3354dd0bfeb63ec4b91b OP_EQUALVERIFY OP_CHECKSIG 73706b67c166070000000000 OP_DROP",
"hex" : "76a914eadb51503d0c15d2d36c3354dd0bfeb63ec4b91b88ac0c73706b67c16607000000000075",
"reqSigs" : 1,
"type" : "pubkeyhash",
"addresses" : [
"1Yk36JuVbQuyr1y5uSJQDLfvnCxpHSi3WNsSgg"
]
},
"assets" : [
{
"name" : "asset-lot@kjlppp",
"issuetxid" : "17b6762b2f5752e224bcd302852d40b68443c04a2bb68d71c473ac4355da30a3",
"assetref" : "86-491-46615",
"qty" : 485.05700000,
"raw" : 485057,
"type" : "issuefirst"
}
],
"permissions" : [
],
"items" : [
]
}
When seeing this, some questions pop out of my mind :
- What is exactly the purpose of scriptPubKey ?
- What is the 'addresses' field in scriptPubKey ? How can it happen to have more than one address on the list ? How the addresses in this field are chosen ?
- Is it possible to clearly identify in a transaction vout to which address an asset (from the assets list) is sent ?
Thank you very much for the answers !