PaymentRequest
Index
Constructors
constructor
Construct a new payment request
Parameters
recipient_address: string
amount: bigint
memo: Uint8Array
label: string
message: string
other_params: any
Returns PaymentRequest
Methods
amount
Returns the value of the payment that is being requested, in zatoshis.
Returns bigint
free
Returns void
label
A human-readable label for this payment within the larger structure of the transaction request.
This will not be part of any generated transactions and is just for display purposes.
Returns string
memo
Returns the memo that, if included, must be provided with the payment.
Returns Uint8Array
message
A human-readable message to be displayed to the user describing the purpose of this payment.
This will not be part of any generated transactions and is just for display purposes.
Returns string
other_params
A list of other arbitrary key/value pairs associated with this payment.
This will not be part of any generated transactions. How these are used is up to the wallet
Returns any
recipient_address
Returns the payment address to which the payment should be sent.
Returns string
staticsimple_payment
Helper method to construct a simple payment request with no memo, label, message, or other parameters.
Parameters
recipient_address: string
amount: bigint
Returns PaymentRequest
A ZIP-321 transaction request