Hello World!
Sending 1sat (1000msat) via BOLT12 offer and paying together 2275msat (so 1275msat for routing).
The offer used in this example is from https://rusty.ozlabs.org/.
$ lightning-cli fetchinvoice LNO1PG89YATNW3UJWUEQ235HQ6NPWG2P2UN4WD68JSRJW4EHGCM0WFCZUCM0D5HXZAG7YP9E58AGUQR0RCUN0AJLVMZQ3EK63CW2W282GV3Z5UUPMUWVGJTQTUZQMJWH28FK0CZHTPJC8NWWQHUEGT4PPLUHS63J9ZNDA9RM443T8ZKMQ5UVKK0DQANA79XR43PLMY00FPJ8XS8S5ZGWVP4P78WA4NN2TRC 1sat # Cannot find route, trying connect to 024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605 directly { "invoice": "lni1qssdt7qzleded8uqhdwqdrq62x80vtex25n2azgrp82092ks3gp0fecgqgp7szsw2f6hxareyaejq4rfwp4xzusvqkqqqqjzqq2p2un4wd68jsrjw4ehgcm0wfczucm0d5hxzag7yp9e58aguqr0rcun0ajlvmzq3ek63cw2w282gv3z5uupmuwvgjtq2f3qm2ks97r6r9q59fdnd6cruasjczrdh0tu7cvvq868vcdy5pa0p5tjsprpe38fc23qpermlqvscenxymr3fk399ttjpcnee0yk3xkqh6w7mvrgcvqjw3hzuqgjxggd9lhkg6pm4a3t708dq82cqjfvnuzq3gunmys5658yctq9jlft79devx8t7ags6z86e5qz7jgr9xsfgf8ya8u6ev5gg4ktehz4syxy9nx4exa6ceaw6dz9qdvsrd9eee8ffpc", "changes": {} }
$ lightning-cli pay lni1qssdt7qzleded8uqhdwqdrq62x80vtex25n2azgrp82092ks3gp0fecgqgp7szsw2f6hxareyaejq4rfwp4xzusvqkqqqqjzqq2p2un4wd68jsrjw4ehgcm0wfczucm0d5hxzag7yp9e58aguqr0rcun0ajlvmzq3ek63cw2w282gv3z5uupmuwvgjtq2f3qm2ks97r6r9q59fdnd6cruasjczrdh0tu7cvvq868vcdy5pa0p5tjsprpe38fc23qpermlqvscenxymr3fk399ttjpcnee0yk3xkqh6w7mvrgcvqjw3hzuqgjxggd9lhkg6pm4a3t708dq82cqjfvnuzq3gunmys5658yctq9jlft79devx8t7ags6z86e5qz7jgr9xsfgf8ya8u6ev5gg4ktehz4syxy9nx4exa6ceaw6dz9qdvsrd9eee8ffpc { "destination": "024b9a1fa8e006f1e3937f65f66c408e6da8e1ca728ea43222a7381df1cc449605", "payment_hash": "0e47bf8190c666626c714da252ad720e279cbc9689ac0be9dedb068c3012746e", "created_at": 1640779435.071, "parts": 1, "msatoshi": 1000, "amount_msat": "1000msat", "msatoshi_sent": 2275, "amount_sent_msat": "2275msat", "payment_preimage": "62093cb95afc6717666843e8876df6f73a411f64a7ae5be7df0df734a2cdba7f", "status": "complete" }
To learn more on how to set up zero routing fees with C-Lightning, have a look at https://ln.anyone.eu.org
BTW: @k00b, the line numbering of pre-formatted text should not change the indentation
@k00b, I see that selecting the text it does not really change the indentation on copy&paste, but optically it does
reply
I see. Hmmm, thanks for reporting!
reply
This is why in a world where stacker news is noncustodial, most users will probably want to open a channel to us directly.
reply
I wonder if autocreating a channel should be an option when using the login with lightning? If I know I'll use the service quite often I would be happy to spend some sats initially if then my other payments will be ~free.
reply
I don't believe you can overload a lnurl qrcode like that, so it'd have to be two steps:
  1. login
  2. some prompt to open a channel (and AFAICT lnurl spec only supports a service like SN opening a channel to the user and not the reverse)
reply