btcmap.org icon indicating copy to clipboard operation
btcmap.org copied to clipboard

Dynamic on-chain donation address

Open dadofsambonzuki opened this issue 1 year ago • 9 comments

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

dadofsambonzuki avatar Sep 19 '23 10:09 dadofsambonzuki

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 avatar Jan 22 '24 16:01 dadofsambonzuki

Or maybe silent payments or paynyms are the answer?

dadofsambonzuki avatar May 16 '24 10:05 dadofsambonzuki

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.

secondl1ght avatar May 16 '24 15:05 secondl1ght

Great idea. I can do that.

dadofsambonzuki avatar May 16 '24 15:05 dadofsambonzuki

Done..

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

dadofsambonzuki avatar May 21 '24 11:05 dadofsambonzuki

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

dadofsambonzuki avatar May 23 '24 09:05 dadofsambonzuki

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

dadofsambonzuki avatar Jun 04 '24 07:06 dadofsambonzuki

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 avatar Jun 05 '24 02:06 secondl1ght

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

secondl1ght avatar Jun 05 '24 03:06 secondl1ght