bitcoind.app
CommandsGuidesContact ↗
Home/Blockchain/gettxout
Blockchain

gettxout

Returns details about an unspent transaction output (UTXO).

Parameters

txidstringREQUIRED
The transaction id
nnumberREQUIRED
The vout index
include_mempoolbooleanoptional
Include mempool. Default: true

Returns

objectUTXO details

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"gettxout","params":["txid",0]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

{
  "bestblock": "00000000000000000002...",
  "confirmations": 12,
  "value": 0.50000000,
  "scriptPubKey": {
    "type": "witness_v1_taproot"
  }
}
← Previous
getrawmempool
Next →
gettxoutproof

More Blockchain Commands

getbestblockhashgetblockgetblockchaininfogetblockcountgetblockfiltergetblockhash

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗