nanoblocks.account.payment package
Submodules
nanoblocks.account.payment.payment module
- class nanoblocks.account.payment.payment.Payment(account_owner, amount, nano_network)
Bases:
nanoblocks.base.nanoblocks_class.NanoblocksClass
Gives an easy interface to handle payments for a given account.
- property qr_code
Retrieves a PIL image with the QR code for the payment that can be scanned by modern wallets.
- property uri
Generates the payment URI
- wait(timeout_seconds=None)
Waits for the payment to be done.
The expected payment must match the exact amount.
- Parameters
timeout_seconds – Time in seconds to wait for the payment. Set it to None to wait indefinitely.
- Returns
Returns the block that needs to be confirmed.