Returns information about a specific unspent transaction output (UTXO). This can be useful for building transactions or checking balances.
Arguments
- conn
A connection object created by
mc_connect.- txid
Character string. Transaction ID.
- vout
Integer. Output index.
- unconfirmed
Logical. If
TRUE, includes unconfirmed transactions (from the mempool). Default isFALSE.
Value
A list with output details, including:
- bestblock
Hash of the best block.
- confirmations
Number of confirmations.
- value
Amount (in native currency).
- scriptPubKey
Output script details.
Returns NULL if the output does not exist or is spent.
See also
mc_get_raw_transaction for full transaction details.
Other mempool & transactions:
mc_get_mempool_info(),
mc_get_raw_mempool(),
mc_get_raw_transaction()