Skip to content

TransactionOutpoint (Class)

Reference to a specific output in a previous transaction.

An outpoint uniquely identifies a UTXO by its transaction ID and output index.

index property

index: int

The index of the output within the transaction.

RETURNS DESCRIPTION
int

The output index.

TYPE: int

transaction_id property

transaction_id: str

The ID of the transaction containing the referenced output.

RETURNS DESCRIPTION
str

The transaction ID as a hex string.

TYPE: str

__eq__

__eq__(other: TransactionOutpoint) -> bool

__new__

__new__(transaction_id: Hash, index: int) -> TransactionOutpoint

Create a new transaction outpoint.

PARAMETER DESCRIPTION
transaction_id

The ID of the transaction containing the output.

TYPE: Hash

index

The index of the output within the transaction.

TYPE: int

RETURNS DESCRIPTION
TransactionOutpoint

A new TransactionOutpoint instance.

TYPE: TransactionOutpoint

get_id

get_id() -> str

Get the unique identifier string for this outpoint.

RETURNS DESCRIPTION
str

A string in format "transaction_id-index".

TYPE: str