Mazin on Nostr: There are ways but like anything else with trade offs. If you can communicate with ...
There are ways but like anything else with trade offs. If you can communicate with the wallet someway (like NWC) outside of http, the web server could fetch an invoice on behalf of the wallet.
If the receiving wallet is offline/unreachable - things get more tricky. Zeus does something with holdinvoices to let self-custodial wallet users claim the funds when they come online.
There always needs to be some coordination between the eventual receiver and the web server though.
Published at
2024-03-20 15:08:20Event JSON
{
"id": "0e4cf1f40bf3892ddc34fc577e2896ed8a9ccfe124de3f1454851046e8025305",
"pubkey": "3d842afecd5e293f28b6627933704a3fb8ce153aa91d790ab11f6a752d44a42d",
"created_at": 1710947300,
"kind": 1,
"tags": [
[
"e",
"f1609786442e30e685202a221478b6d5fa6e5637c7a0029ba8f26533eba0569f"
],
[
"e",
"5fec957ae4e8cc3b22cd95c19e4512bfb6e347780de8f76a780aa0bbf81ed884"
],
[
"p",
"99bb5591c9116600f845107d31f9b59e2f7c7e09a1ff802e84f1d43da557ca64"
],
[
"p",
"f4db5270bd991b17bea1e6d035f45dee392919c29474bbac10342d223c74e0d0"
],
[
"p",
"dd664d5e4016433a8cd69f005ae1480804351789b59de5af06276de65633d319"
]
],
"content": "There are ways but like anything else with trade offs. If you can communicate with the wallet someway (like NWC) outside of http, the web server could fetch an invoice on behalf of the wallet. \n\nIf the receiving wallet is offline/unreachable - things get more tricky. Zeus does something with holdinvoices to let self-custodial wallet users claim the funds when they come online. \n\nThere always needs to be some coordination between the eventual receiver and the web server though.",
"sig": "2658aa1d7713b4133834098d576147edb77fbdc8f031ab1f916a2bbc5063b73b0ba2361a3bc104c17240b34457ab88b282447c70af34224258531025faf26590"
}