-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: getAddress for (fallback?) on-chain transaction #16
Comments
Since on-chain address for refunds / large payments is a part of the BOLT-11 spec, is there any reason we wouldn't just rely on that? |
Use-case: ZigZag exchanges lighnting coins on on-chain coins, thus, asks for onchain address, it doesnt need whole bolt invoice. Otherwise, workaround would be: |
Oh, also provider might not know that fallback is really required in some case, while |
If we want to include bitcoin payments in webLN goodness I see merit in adding this call. Also agree with @Overtorment with ZigZag style exchange being able to autofill on chain address as good example. |
Sorry for the delay, this makes plenty of sense to me, even more-so now with Loop. A question to the audience though:
|
Most services check the address and know what type it is anyway, so I don't think so. Would be nice to have the service be able to say a they do support bech32 and prefer that, but not be a hard requirement. |
I doubt any dinosaur application will support webLN and NOT support bech32 |
True, eclair seems to be one of the weird ones not offering native bech32 receive support, but it's a mobile wallet, strict bech32 would be preferred, can always add an optional type in the future, but probably not needed now. |
I propose to add something like this to Provider signature:
For a case when Lapp needs an onchain address for whatever reason. Reason should be provided in
comment
which is displayed to user.Common use cases: change; refund in case of some kind of failure; lapp wants to payout too big amount; issue with user-provided invoice (via makeInvoice) - no route/no capacity
Prodiver shall display
comment
to user and user should choose his regular onchain btc wallet to receive such transaction.The text was updated successfully, but these errors were encountered: