COutPoint

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

NameDescription
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

NameDescription
hash Hash of the transaction that created the referenced output.
n Index of the referenced output within that transaction's outputs.

Static Data Members

NameDescription
NULL_INDEX Sentinel index value marking a null outpoint.

Friends

NameDescription
operator==Compares two outpoints for equality.
operator<Orders outpoints by transaction hash, then output index.