I’m hoping to be able to do it outside any app, as if I just run a python command on my computer or a server and it hits your API… is that kind of thing possible?
This depends a bit on the app you are building. Is it a web app? or a mobile app?
And for zapping you need a Nostr key to sign the zap.
The alby-tools npm package has some helpers: https://github.com/getAlby/alby-tools/tree/master#zapping-a-ln-address-on-nostr
Discussion
totally. And you want to access one specific account and interact with that? or do you want to allow users to connect their accounts to your app?
a start is: https://getalby.com/developers
but I am happy to help here.
Just interact with one account that I own and control - so I can send zaps (or just regular payments to lightning addresses specifically without having to deal with invoices) programmatically (like a bot that zaps people)
Hi, you can use alby-tools and alby-js-sdk to send payments with Nostr Wallet Connect. You can see some example code at https://replit.com/@bumi17/nwc-demo and ZapPlanner (https://github.com/getAlby/ZapPlanner/)
At first glance those projects look like they require a user to manually authorize alby to connect - does it also have a feature to send payments to lightning addresses without requiring alby extension interaction or manual interaction ?
With NWC, yes. You setup the app connection once and then it can send payments on your behalf
I saw that guide and wasn’t sure if that same functionality would work if I didn’t care about external users and just wanted to send out payments or zaps from just my one account I control