Skip to main content

gettxout RPC Method

Returns details about an unspent transaction output.

Updated on
Feb 03, 2026

Parameters

txid
string
REQUIRED

The transaction id

n
integer
REQUIRED

Vout number

include_mempool
boolean

default=true. Whether to include the mempool

Returns

result
object | null

UTXO 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 BTC

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 transaction

type
string

The type of script, eg pubkeyhash, multisig

desc
string

(Optional) Descriptor for the output script

address
string

(Optional) Bitcoin address for the output

reqSigs
integer

(Optional) Number of required signatures

addresses
array

(Optional) A JSON array of Bitcoin addresses

str
string

A Bitcoin address

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

(Optional) JSON-RPC error when the request failed; omitted or null on success

code
integer

Error code

message
string

Error message

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