Can you elaborate on the idea of auto-withdrawals? Right now this could already be done by client logic. Periodically call the APIs /claim with NIP-98 header to get eCash. Store them locally. If user want to send them elsewhere do a /melt with the Cashu mint.

I’ll write a short post about that idea today

Reply to this note

Please Login to reply.

Discussion

Yep, we already do that part (/ment into the ln address from their profile) when the user presses the claim button of the cashu token previwer. The more important part is when they do not have an address setup.

Just thinking out lout: Amethyst could check the /claim endpoint of npub.cash periodically and send a mocked DM to the user with the token.

npub.cash already sends dm on payments. I am currently working on adding the token in those as well. Once thats done, users would receive ecash directly in their inboxes without clients doing anything