anyone know that how to integrate with payment such as bitcoin or lightning? I need to figure out a way to implement Pay-To-Join for the relay
Login to reply
Replies (11)
@gsovereignty how did you do this for Flamebucket?
I used nostr-rs-relay with Lnbits. But if I was doing it now I'd use grpc and custodial lightning instead of running my own node which is very annoying
Just use a zap to the pubkey of your relay
I used to use lnbits but a zap makes it much easier now
Easiest way is prob to use the Strike API. If you wanna go the self-custodial route, I’d use LNbits. I think @Voltage gives you a free LNbits server with a node. I know they used to give you one, but not sure if they still do.
But zap can be fake, how do I verify?
@npub1ex7m...vyt9 this?
Custodial is preferred because I don’t want operators of this relay to set up extra things
Exactly
Have a look at how I control user access in github.com/nostrocket/flamebucket
It's not complete and I haven't touched it for a while but should give you some ideas
You validate the pubkey that publishes the zap is that of the relay operator's custodian in their LUD16, or you can check the custodian's http endpoint.