amount method

  1. @override
PjUriBuilder amount({
  1. required BigInt amount,
})

Accepts the amount you want to receive in sats and sets it in btc.

Implementation

@override
PjUriBuilder amount({required BigInt amount}) {
  try {
    final res = super.amount(amount: amount);
    return PjUriBuilder(internal: res.internal);
  } on error.PayjoinError catch (e) {
    throw mapPayjoinError(e);
  }
}