Get TxOut

gettxout "txid" n ( include_mempool )

To get details of unspent transaction output.

If the transaction has been spen the It will return "null" .

gettxout 9ebd45e39a3cf899bf358980ef1278d1ba300b1504aaf57ae02d37866dda175 1

{
"bestblock": "22ba456ea84fc328aac46cea65d37bde4770bb20dc592f540bf19549a18187d6e",
"confirmations": 5,
"value": 0.03532359,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 3cdb9b3b64d55bf232263fc9b17134baa77cea34 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "fd413ac72cab9bba67d76b0135ff586419299ba14bfd2f88ca",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
" G8852gPU4dx5wZ4yW2dVj8t39d7Kq5wb2"
]
},
"coinbase": false,
"coinstake": false
}