gettxout

Input(s) 3

The gettxout RPC command is used to obtain information about a specified unspent transaction output. The output must not be spent at the time of the query. The command can check for the UTXO in the mempool by default, unless specified otherwise. It provides details such as the block in which the transaction is included (bestblock), the number of confirmations, the value of the output in BTC, and details about the script public key including the type, required signatures, and associated addresses

How is this used?

This command is essential for verifying the existence and details of specific unspent transaction outputs, especially useful for wallet applications, explorers, or any service requiring confirmation of transaction finality and output details. It helps in assessing whether a UTXO is spendable and gathering necessary details for crafting new transactions.

Request

method

gettxout

txid

Required

n

Required

include_mempool

Optional

Inputs(3)

two required input remaining...

txid (required) - The transaction ID
n (required) - Vout number
include_mempool Whether to include the mempool

Result