PjUriBuilder class

Constructors

PjUriBuilder({required PjUriBuilder internal})

Properties

hashCode int
The hash code for this object.
no setterinherited
internal → PjUriBuilder
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

amount({required BigInt amount}) PjUriBuilder
Accepts the amount you want to receive in sats and sets it in btc.
build() PjUri
Constructs a Uri with PayjoinParams from the parameters set in the builder.
label({required String label}) PjUriBuilder
Set the label.
message({required String message}) PjUriBuilder
Set the message.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pjos({required bool pjos}) PjUriBuilder
Set whether payjoin output substitution is allowed.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

create({required String address, required FfiUrl pj, FfiOhttpKeys? ohttpKeys, BigInt? expiry}) Future<PjUriBuilder>
Create a new PjUriBuilder with required parameters. Parameters address: Represents a bitcoin address. ohttpKeys: Optional OHTTP keys for v2. expiry: Optional non-default duration_since epoch expiry for the payjoin session.