Skip to content

Add verify lightning address and lnurl-pay support#251

Open
Sky-walkerX wants to merge 8 commits intofedimint:mainfrom
Sky-walkerX:addLightningVerifyAndPay
Open

Add verify lightning address and lnurl-pay support#251
Sky-walkerX wants to merge 8 commits intofedimint:mainfrom
Sky-walkerX:addLightningVerifyAndPay

Conversation

@Sky-walkerX
Copy link
Copy Markdown
Contributor

Closes #221.
Corresponding fedimint PR -> fedimint/fedimint#8377

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 10, 2026

🦋 Changeset detected

Latest commit: 191fcaf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@fedimint/core Patch
@fedimint/fedimint-client-wasm-bundler Patch
@fedimint/fedimint-client-wasm-web Patch
@fedimint/transport-web Patch
@fedimint/core-web Patch
@fedimint/react-native Patch
@fedimint/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@MrImmortal09
Copy link
Copy Markdown
Member

@Sky-walkerX Have you tested if it works?
Ig, you might require a version bump for the wasm as well.

@alexlwn123
Copy link
Copy Markdown
Member

+1 to @MrImmortal09's comment. Also, please add a test for each of the new RPCs.

And if you're feeling ambitious, add a docs page for each as well.

@Sky-walkerX
Copy link
Copy Markdown
Contributor Author

@Sky-walkerX Have you tested if it works? Ig, you might require a version bump for the wasm as well.

I have tested the methods, yes they work in UI.
Screenshots below

image image

I'll add the version bump as well as tests, docs for the RPCs soon.

@Sky-walkerX
Copy link
Copy Markdown
Contributor Author

Added the tests, the one failing is due to network mismatch.
image

@Sky-walkerX Sky-walkerX force-pushed the addLightningVerifyAndPay branch from 252e4db to 21556fe Compare March 19, 2026 17:42
@MrImmortal09
Copy link
Copy Markdown
Member

MrImmortal09 commented Mar 19, 2026

I have tested the methods, yes they work in UI. Screenshots below

Seems like you implemented the functions in one of the examples, but they’re missing from the PR diff. Could you please add them as well?

@Sky-walkerX
Copy link
Copy Markdown
Contributor Author

I have tested the methods, yes they work in UI. Screenshots below

Seems like you implemented the functions in one of the examples, but they’re missing from the PR diff. Could you please add them as well?

In all demo examples, right?

@MrImmortal09
Copy link
Copy Markdown
Member

In all demo examples, right?

Yes.

@Sky-walkerX
Copy link
Copy Markdown
Contributor Author

In all demo examples, right?

Yes.

Added them.

Comment thread packages/core/src/services/LightningService.ts Outdated
Comment thread docs/core/FedimintWallet/verifyLightningAddress.md
@Sky-walkerX
Copy link
Copy Markdown
Contributor Author

Made the changes, please review when available.

@Sky-walkerX Sky-walkerX force-pushed the addLightningVerifyAndPay branch 2 times, most recently from 39d9ef3 to 6eef9f4 Compare March 31, 2026 10:28
Copy link
Copy Markdown
Member

@MrImmortal09 MrImmortal09 left a comment

Choose a reason for hiding this comment

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

You will also need to bump the wasm in flake.nix.

In examples, show the meta data as well in the verifyy lightning address function, like maxSendable minSendable.

Comment thread .changeset/wacky-guests-talk.md Outdated
@@ -0,0 +1,8 @@
---
'@fedimint/core': minor
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should be patch

await wallet.open()

const payment = await wallet.lightning.payLightningAddress(
// [!code focus]
Copy link
Copy Markdown
Member

@MrImmortal09 MrImmortal09 Mar 31, 2026

Choose a reason for hiding this comment

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

add this & similar files to prettierignore

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@MrImmortal09, made the changes. please review.

@MrImmortal09
Copy link
Copy Markdown
Member

@Sky-walkerX Please check the merge conflicts, as #271 is merged, do verify if we require a wasm bump again or not.

@Sky-walkerX Sky-walkerX force-pushed the addLightningVerifyAndPay branch from 4d30156 to 191fcaf Compare April 14, 2026 12:34
@Sky-walkerX
Copy link
Copy Markdown
Contributor Author

@MrImmortal09, resolved the conflict. We required a wasm bump again.

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.

Support pay to Lightning Addresses

3 participants