Skip to main content

gettxout RPC Method

Returns details about an unspent transaction output.

Updated on
Feb 04, 2026

Parameters

txid
string
REQUIRED

The transaction id

n
numeric
REQUIRED

Vout number

include_mempool
boolean

default=true. Whether to include the mempool

Returns

result
object | null

Transaction output details, or null if the output is not found or already spent

bestblock
string

The block hash at the tip of the chain

confirmations
integer

The number of confirmations received for the transaction

value
number

The transaction value in BCH

scriptPubKey
object

A JSON object containing information about the PubKey script

asm
string

The script public key in the form of string

hex
string

The hexadecimal of the script

reqSigs
integer

Number of required signatures

type
string

The type of script, eg pubkeyhash, multisig

addresses
array

A JSON array of Bitcoin Cash addresses

coinbase
boolean

It is true if the transaction output belongs to a coinbase transaction otherwise it's false for all other transactions

error
object | null

JSON-RPC error object when the request failed, or null on success

id
integer

The JSON-RPC request identifier

Request
Response
1
{
2
"result": null,
3
"error": null,
4
"id": 1
5
}
1
{
2
"result": null,
3
"error": null,
4
"id": 1
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free