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:
|
value
property
writable
¶
The output value in sompi (1 KAS = 100,000,000 sompi).
| RETURNS | DESCRIPTION |
|---|---|
int
|
The amount in sompi.
TYPE:
|
__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:
|
script_public_key
|
The locking script.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
TransactionOutput
|
A new TransactionOutput instance.
TYPE:
|