teambtcmap / btcmap.org

Free and open source bitcoin map web application
https://btcmap.org
GNU Affero General Public License v3.0
43 stars 11 forks source link

Dynamic on-chain donation address #109

Open dadofsambonzuki opened 1 year ago

dadofsambonzuki commented 1 year ago

Use the LNBits 'api_fresh_address_watchonly' API to get dynamic on-chain addresses for donations.

dadofsambonzuki commented 8 months ago

We now have an issue with large gaps between addresses, which causes issues with wallets.

Need to re-think the strategy here, perhaps using a pool of addresses (maybe randomly served on page load), which are refreshed periodically.

dadofsambonzuki commented 4 months ago

Or maybe silent payments or paynyms are the answer?

secondl1ght commented 4 months ago

Maybe we can put in an issue with lnbits to add a new getNextUnusedAddress API endpoint. Seems like it should be an option there instead of always grabbing a new one.

dadofsambonzuki commented 4 months ago

Great idea. I can do that.

dadofsambonzuki commented 4 months ago

Done..

In the meantime perhaps we could just have a button that generates an address when clicked rather than upon page load?

dadofsambonzuki commented 4 months ago

https://github.com/lnbits/watchonly/issues/13#issuecomment-2125087396

dadofsambonzuki commented 4 months ago

I think we need to progress with the button to generate an address ASAP @secondl1ght. Loading the wallet with these large gaps is almost impossible right now! Now upto address 4600.

We can show our paynym on the initial page serve: +fragrantcake292

secondl1ght commented 4 months ago

Yeah we get around 650 views on that page per month so that is the rate the gap will increase. Keep in mind this won't solve the current gaps though and there still may be gaps in the future, but not as many.

secondl1ght commented 4 months ago

I guess the other option is to go back to the static address.