PaymentOutput (Class)¶
A payment destination with address and amount.
Represents a single output in a transaction, specifying where funds should be sent and how much.
__eq__
¶
__eq__(other: PaymentOutput) -> bool
Equality comparison.
| PARAMETER | DESCRIPTION |
|---|---|
other
|
Another PaymentOutput to compare against.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if both outputs have identical address and amount.
TYPE:
|
__new__
¶
__new__(address: Address, amount: int) -> PaymentOutput
Create a new Payment Output.
| PARAMETER | DESCRIPTION |
|---|---|
address
|
The address to send this output to.
TYPE:
|
amount
|
The amount, in sompi, to send on this output.
TYPE:
|
__repr__
¶
The detailed string representation.
| RETURNS | DESCRIPTION |
|---|---|
str
|
The PaymentOutput as a repr string.
TYPE:
|
with_covenant
staticmethod
¶
with_covenant(address: Address, amount: int, covenant: CovenantBinding) -> PaymentOutput
Create a new Payment Output bound to a covenant.
| PARAMETER | DESCRIPTION |
|---|---|
address
|
The address to send this output to.
TYPE:
|
amount
|
The amount, in sompi, to send on this output.
TYPE:
|
covenant
|
The covenant binding to attach to this output.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
PaymentOutput
|
A new PaymentOutput instance.
TYPE:
|