btcmap.org
btcmap.org copied to clipboard
Dynamic on-chain donation address
Use the LNBits 'api_fresh_address_watchonly' API to get dynamic on-chain addresses for donations.
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.
Or maybe silent payments or paynyms are the answer?
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.
Great idea. I can do that.
In the meantime perhaps we could just have a button that generates an address when clicked rather than upon page load?
https://github.com/lnbits/watchonly/issues/13#issuecomment-2125087396
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
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.
I guess the other option is to go back to the static address.