Skip to content

TransactionOutput (Class)

A transaction output defining a payment destination.

Outputs specify an amount and a locking script (script_public_key) that defines the conditions for spending.

script_public_key property writable

script_public_key: ScriptPublicKey

The locking script that defines spending conditions.

RETURNS DESCRIPTION
ScriptPublicKey

The script public key.

TYPE: ScriptPublicKey

value property writable

value: int

The output value in sompi (1 KAS = 100,000,000 sompi).

RETURNS DESCRIPTION
int

The amount in sompi.

TYPE: int

__eq__

__eq__(other: TransactionOutput) -> bool

__new__

__new__(value: int, script_public_key: ScriptPublicKey) -> TransactionOutput

Create a new transaction output.

PARAMETER DESCRIPTION
value

Amount in sompi (1 KAS = 100,000,000 sompi).

TYPE: int

script_public_key

The locking script.

TYPE: ScriptPublicKey

RETURNS DESCRIPTION
TransactionOutput

A new TransactionOutput instance.

TYPE: TransactionOutput