Supporting a custodial user who wishes to withdraw all sats from the account...



Summary:

At an event, visitors were gifted 10k sats on a custodial wallet, but some were confused when they couldn't withdraw the full amount due to a required fee. To solve this issue, a proposal has been made for a new flag in invoices called `option_recipient_pays_routing_fees`. This flag would signal that the recipient is willing to pay for routing fees by releasing the preimage even if the full amount has not arrived in HTLCs at the recipient. The workflow would involve creating an invoice with the flag and passing it to the payer, who searches for a payment path to the recipient. The onion is constructed so that the first HTLC will be for the full amount, and following HTLCs will decrease in value for proper compensation of routing nodes. The recipient releases the preimage if the missing sats are within a configurable percentage. The main challenge of this proposal is educating users about two different invoice types. It may be beneficial to have input from the Bitcoin Design community.


Updated on: 2023-06-03T09:42:35.916431+00:00