Skip to main content

TxInput

Represents a transaction input.

Associated functions​

from_data​

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

new​

Construct a TxInput instance.

TxInput::new(
output_id: TxOutputId,
output: TxOutput
) -> TxInput

Getters​

address​

Shortcut for tx_input.output.address:

tx_input.address -> Address

datum​

Shortcut for tx_input.output.datum:

tx_intput.datum -> OutputDatum

output_id​

Returns the TxOutputId of the underlying UTxO.

tx_input.output_id -> TxOutputId

output​

Returns the underlying UTxO as a TxOutput.

tx_input.output -> TxOutput

value​

Shortcut for tx_input.output.value:

tx_intput.value -> Value

Operators​

==

TxInput == TxInput -> Bool

!=​

TxInput != TxInput -> Bool

Methods​

serialize​

tx_input.serialize() -> ByteArray