Can we do Zap Splits with Cashu yet?

nostr:nprofile1qqs9pk20ctv9srrg9vr354p03v0rrgsqkpggh2u45va77zz4mu5p6ccpremhxue69uhkummnw3ez6ur4vgh8wetvd3hhyer9wghxuet59uq32amnwvaz7tmjv4kxz7fwv3sk6atn9e5k7tcppemhxue69uhkummn9ekx7mp069f2j4 how do I send multiple payments to a Cashu wallet all at once?

Reply to this note

Please Login to reply.

Discussion

you can do this in 0xChat

When the client generates the zaps

, it would just lock half to one npub, and the other half to another (assuming 50/50 split)

So the client wallet would take X amount of ecash and request the mint to create new ecash tokens locked to the proper npubs, and then you just sent those along with your zap note.

The receiver could just look for ecash locked to its npub, and then claim it immediately and add it to a wallet.

A couple of web based cashu wallets do this currently using nostr DMs

The nostr:npub1arcweuxy0zkdcg08sljh058qp02ytrgnpzh4csa3ar42szyfgrpsw6ggtw guys with nostr:npub1cd0l3s6qgj0s6690rtkys39mgj5upwxpm4856nhmce0pyqu6xj9qh7xlvx and nostr:npub1ce7d8cdg8k49dnl3da34mvhah8kevxfsq2vdguq6trngapqfsdzsnv3d7m are sending huge zap splits with Cashu afaik.

A single payment is instant, could you just send n payments and that's it? Thinking of nostr:npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft's new invention (notice how I avoid the name nutsack), you could send multiple note events with ecash and you should be good.

Can you explain the use case in more detail?

I'd you want to lock to npubs: You can lock as many tokens as you like to as many pubkeys as you like (there is a limit but it's large) with a single swap transaction to the mint.

The locked tokens are then just a bearer assets: send them to as many people as you've locked to.

Currently just holding a balance in cashu but paying out over lightining. The dream is nwc + cashu zaps for massive amd instant splits