Skip to content

Add lnbits example#5

Merged
georgealexiou merged 2 commits intomainfrom
JM/add-lnbits
Jun 13, 2025
Merged

Add lnbits example#5
georgealexiou merged 2 commits intomainfrom
JM/add-lnbits

Conversation

@jimmarshall87
Copy link
Contributor

No description provided.

const LN_BITS_URL = "https://demo.lnbits.com/api/v1/payments";
const ADMIN_KEY = process.env.LNBITS_ADMIN_KEY as string; // Set in your env

async function pay(offer: any) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we type this as OfferDetails🙏

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah but I think all the other examples need the same doing, this one is at least consistent with the others!

@georgealexiou georgealexiou merged commit a809ec2 into main Jun 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants