Parameters
- txidstringREQUIRED
The transaction id
- nintegerREQUIRED
Vout number
- include_mempoolboolean
default=true. Whether to include the mempool
Returns
- resultobject | null
UTXO details, or null if the output is not found or already spent
- bestblockstring
The block hash at the tip of the chain
- confirmationsinteger
The number of confirmations received for the transaction
- valuenumber
The transaction value in BTC
- scriptPubKeyobject
A JSON object containing information about the PubKey script
- asmstring
The script public key in the form of string
- hexstring
The hexadecimal of the transaction
- typestring
The type of script, eg pubkeyhash, multisig
- descstring
(Optional) Descriptor for the output script
- addressstring
(Optional) Bitcoin address for the output
- reqSigsinteger
(Optional) Number of required signatures
- addressesarray
(Optional) A JSON array of Bitcoin addresses
- strstring
A Bitcoin address
- coinbaseboolean
It is true if the transaction output belongs to a coinbase transaction otherwise it's false for all other transactions
- errorobject | null
(Optional) JSON-RPC error when the request failed; omitted or null on success
- codeinteger
Error code
- messagestring
Error message
1{2"jsonrpc": "2.0",3"result": null,4"id": 15}
1{2"jsonrpc": "2.0",3"result": null,4"id": 15}