An outpoint ‐ a combination of a transaction hash and an index n into its vout

Synopsis

Declared in <primitives/transaction.h>

class COutPoint;

Member Functions

Name

Description

COutPoint [constructor]

Constructors

IsNull

Returns true when the outpoint references no output.

SetNull

Resets the outpoint to its null state.

ToString

Returns a human‐readable description of the outpoint.

Data Members

Name

Description

hash

Hash of the transaction that created the referenced output.

n

Index of the referenced output within that transaction's outputs.

Static Data Members

Name

Description

NULL_INDEX

Sentinel index value marking a null outpoint.

Friends

Name

Description

operator==

Compares two outpoints for equality.

operator<

Orders outpoints by transaction hash, then output index.

Created with MrDocs