Skip to main content

TxOutputId

Represents the unique ID of a UTxO. It's composed of the transaction ID (TxId) of the transaction that created that UTxO, and of the index (Int) of that UTxO in the outputs of that transaction.

Associated functions​

new​

TxOutputId::new(tx_id: TxId, index: Int) -> TxOutputId

from_data​

TxOutputId::from_data(data: Data) -> TxOutputId

Getters​

index​

Index of the UTxO in the producing transaction:

tx_output_id.index -> Int

tx_id​

TxId of the producing transaction:

tx_output_id.tx_id -> TxId

Operators​

==

TxOutputId == TxOutputId -> Bool

!=​

TxOutputId != TxOutputId -> Bool

>=​

First compares bytes of TxId, then compares index.

TxOutputId >= TxOutputId -> Bool

>​

First compares bytes of TxId, then compares index.

TxOutputId > TxOutputId -> Bool

<=​

First compares bytes of TxId, then compares index.

TxOutputId <= TxOutputId -> Bool

<​

First compares bytes of TxId, then compares index.

TxOutputId < TxOutputId -> Bool

Methods​

serialize​

tx_output_id.serialize() -> ByteArray