Skip to main content

gettxout RPC Method

Returns details about an unspent transaction output.

Updated on
Apr 29, 2026

Parameters

txid
string
REQUIRED

The transaction id

n
integer
REQUIRED

Vout number

include_mempool
boolean

Whether to include the mempool. Default: true. Note that an unspent output that is spent in the mempool won't appear.

Returns

result
object | null

UTXO details, or null if the output is spent or does not exist

bestblock
string

The hash of the block at the tip of the chain

confirmations
integer

The number of confirmations

value
number

The transaction value in ZEC

scriptPubKey
object

A JSON object containing information about the PubKey script

asm
string

The script public key

hex
string

The hex of the script's public key

reqSigs
integer

The number of required signatures

type
string

The type of script (e.g., pubkeyhash, scripthash)

addresses
array

An array of Zcash addresses associated with this output

address
string

A Zcash transparent address

version
integer

The transaction version

coinbase
boolean

Whether the transaction is a coinbase

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"bestblock": "0000000000998e72deba8744e77d0ad36667e8de0615c5eec17bcae469b32132",
6
"confirmations": 5,
7
"value": 1.25,
8
"scriptPubKey": {
9
"asm": "OP_DUP OP_HASH160 0d87ca39eb9cabbfdb6c91de1baab82a7addca7f OP_EQUALVERIFY OP_CHECKSIG",
10
"hex": "76a9140d87ca39eb9cabbfdb6c91de1baab82a7addca7f88ac",
11
"reqSigs": 1,
12
"type": "pubkeyhash",
13
"addresses": [
14
"t1K79TgQbqu74d6rBmsMu2oFEXEwAmdYiT7"
15
]
16
},
17
"version": 5,
18
"coinbase": true
19
}
20
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"bestblock": "0000000000998e72deba8744e77d0ad36667e8de0615c5eec17bcae469b32132",
6
"confirmations": 5,
7
"value": 1.25,
8
"scriptPubKey": {
9
"asm": "OP_DUP OP_HASH160 0d87ca39eb9cabbfdb6c91de1baab82a7addca7f OP_EQUALVERIFY OP_CHECKSIG",
10
"hex": "76a9140d87ca39eb9cabbfdb6c91de1baab82a7addca7f88ac",
11
"reqSigs": 1,
12
"type": "pubkeyhash",
13
"addresses": [
14
"t1K79TgQbqu74d6rBmsMu2oFEXEwAmdYiT7"
15
]
16
},
17
"version": 5,
18
"coinbase": true
19
}
20
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free