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
¶
The index of the output within the transaction.
| RETURNS | DESCRIPTION |
|---|---|
int
|
The output index.
TYPE:
|
transaction_id
property
¶
The ID of the transaction containing the referenced output.
| RETURNS | DESCRIPTION |
|---|---|
str
|
The transaction ID as a hex string.
TYPE:
|
__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:
|
index
|
The index of the output within the transaction.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
TransactionOutpoint
|
A new TransactionOutpoint instance.
TYPE:
|
get_id
¶
Get the unique identifier string for this outpoint.
| RETURNS | DESCRIPTION |
|---|---|
str
|
A string in format "transaction_id-index".
TYPE:
|