I want to make it clear what's in your nutsack and how it's working so I'm including mint links in every transaction. There's also a list of coins so you can check the ecash tokens you have, I could probably add a quick way to copy them for sending too.

https://v.nostr.build/rz0ni4taWn7ZVlDe.mp4

Clicking on a mint or dropping a mint event in chat will show detailed information about the mint such as name, description, motd and supported NUTs. I also want to show which of your contacts is using it and allow you to join the mint.

Reply to this note

Please Login to reply.

Discussion

What wallet are you using?

This is an ecash wallet stored on nostr (nip-60) and the UI is the work in progress chachi integration. NWC will work similarly with full wallet functionality but the UI is a bit simpler.

I have only experimented with the nip-60 wallet on Olas and It doesn't seem very reliable to me. I've received many zaps on the nip-60 but I've never been able to view them.

That's unfortunate, this is still highly experimental. When I release I'll let you know and you can check if you see the nutzaps in chachi.

What library are you using? Cashu-ts?

ChaChi is a PWA only right?

So did you build a bundle.js webpack to integrate Cashu functions into your web client? Or are you making API calls on the backend?

I’m trying to figure this out for my web client, but I’m not super familiar with typescript

Cashu-ts and ndk-wallet yeah, you can interact with the mint client side no problem since it has an HTTP API (and some websockets too).

For now I just need to be able to do this client side:

- Generate a mint quote lightning invoice

- Confirm when it’s been paid

- Generate a cashu token from the proof

How do I do this with the Mint HTTP API?

I know the python integration, Nutshell, has the mint API for localhost, but how would I use the API for minibits, for example

All mints have the same API defined in the cashu spec, the cashu-ts library has all you need! https://github.com/cashubtc/cashu-ts

Cashu-ts implements cashu, ndk-wallet implements NIP-60

got it, nip 60 is "the nostr db", cashu-ts is the engine

I'm using cashu-ts to encode/decode ecash tokens, get mint keysets and info and more. as nostr:npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft mentioned the NDK NIP-60 wallet uses cashu-ts under the hood https://github.com/search?q=repo%3Apurrgrammer%2Fchachi%20cashu-ts&type=code