helium_py.transactions.payment.Payment

class helium_py.transactions.payment.Payment(payee: Address, amount: int, memo: Optional[bytes])[source]

Bases: object

Payment Class providing protocol buffer serialization and deserialization of Payments.

__init__(payee: Address, amount: int, memo: Optional[bytes]) None

Methods

__init__(payee, amount, memo)

deserialize_payment_list(...)

Deserialize a list of Protocol Buffer Payment objects into a list of this Payment Dataclass.

payment_list_to_proto(payment_list)

Serialize a list of this Payment Dataclass into a list of Protocol Buffer Payment objects.

Attributes

payee

amount

memo

static deserialize_payment_list(protocol_buffer_payment_list: List[Payment]) List[Payment][source]

Deserialize a list of Protocol Buffer Payment objects into a list of this Payment Dataclass.

static payment_list_to_proto(payment_list: List[Payment]) List[Payment][source]

Serialize a list of this Payment Dataclass into a list of Protocol Buffer Payment objects.