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

Reply to this note

Please Login to reply.

Discussion

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

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

Just use a zap to the pubkey of your relay

I used to use lnbits but a zap makes it much easier now

But zap can be fake, how do I verify?

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.

Easiest way is prob to use the Strike API. If you wanna go the self-custodial route, Iโ€™d use LNbits. I think nostr:npub15klkdfx9sh3y096a5jf895rcvkmkzvly2fm9dgxq6huqhp9576jsav4m73 gives you a free LNbits server with a node. I know they used to give you one, but not sure if they still do.

Yep

nostr:note18xpu7659s00x4wsktsemr58unrrzrhmrsk9rvnhkzz6aglu67dsqu3jyxj