Step 2. View Details about Specific UTXO
Use thegettxout commandto get the details of the unspent output we found.
Command
Command Parameters:
gettxout "txid" n ( include_mempool )
Arguments:
- "txid" (string, required) The transaction id
- "n" (numeric, required) vout number
- "include_mempool" (boolean, optional) Whether to include the mempool. Default: true. Note that an unspent output that is spent in the mempool won't appear.
Execute Command
To get the 0th index of the txid e787…
gettxout e787a27bda32c8b54ee501be46d2cfcd47c1566c8ef6ee339bdb7cd5c82b701c 0
Result
{
"bestblock" : "00000000000000acd313062396a726f5ff6e5182522985c1a8a0286aaff536cd",
"confirmations" : 13,
"value" : 0.05000000,
"scriptPubKey" : {
"asm" : ""OP_HASH160 54ad1e8953876c90d3fc15798c687835ab3d3aee OP_EQUAL"",
"hex" : "a91454ad1e8953876c90d3fc15798c687835ab3d3aee87",
"reqSigs" : 1,
"type" : "scripthash",
"addresses" : [
"2Mzxx8wGAmQQyCCrb2vXP4yxaYY9s9nepfy"
]
},
"coinbase" : false
}
We see more detailed information about this output, some which we’ve seen before from the listunspent command.