Of course it's possible. You can do it manually with boltz. They have an API, you could do everything programmatically in the backend of a wallet.
Discussion
Why hasn't anyone built it yet?
Idk. nostr:nprofile1qqs9pk20ctv9srrg9vr354p03v0rrgsqkpggh2u45va77zz4mu5p6ccpzemhxue69uhk2er9dchxummnw3ezumrpdejz7qgkwaehxw309a5xjum59ehx7um5wghxcctwvshszrnhwden5te0dehhxtnvdakz7qrxnfk know anyone that would take a bounty?
I'm still in the camp that its impossible to build into mint options and/or ecash wallets
Would be glad to be proven wrong
You would click receive, You would click lightning and the mint would return to you a lightning invoice or say send x amount to this Bitcoin address.
At the same time an invoice is generated, that invoice is also used with bolts API to make a swap from on a chain. Boltz will return an amount and address. So then the wallet could provide both the lightning invoice or the on-chain address with the amount to send.
Yup that's what I want