Oddbean new post about | logout
 Same 
 I am writing the docs for the new `ndk-wallet` library I'm packaging right now 😂

you'll be able to do fun things like:

ndk.wallet = new NDKWallet()

user = ndk.getUserFromNip05("calle@cashu.me")

user.zap(1000, "yoooo") // ecash zap, preferably from mints we have in common

user = ndk.getUserFromNip05("jack@cashapp.com")

user.zap(1000, "yoooo") // if  @jack hasn't created an ecash wallet it'll get a bolt 11 and pay it with my cashu wallet balance 
 beautiful. I use NDK in my Cashu wallet, this is getting weird 😍

can it zap event IDs as well? 
 yeah, a zap is a zap! 😂

it also supports zap splits -- it's basically the same zapping logic, it just how the money is sent what now will be pluggable to other transport layers instead of just LN