Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: basic invoice decoding #107

Merged
merged 2 commits into from
Nov 16, 2023
Merged

feat: basic invoice decoding #107

merged 2 commits into from
Nov 16, 2023

Conversation

rolznz
Copy link
Contributor

@rolznz rolznz commented Nov 16, 2023

Fixes #44

@reneaaron
Copy link
Contributor

utACK

}
this.paymentHash = decodedInvoice.paymentHash;
this.satoshi = decodedInvoice.satoshi;
this.timestamp = decodedInvoice.timestamp;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should we expose timestamp and expiry? or just the date objects? (I think these are easier to use in JS)

@rolznz rolznz merged commit 06b99c7 into master Nov 16, 2023
1 check passed
@bumi
Copy link
Contributor

bumi commented Nov 16, 2023

I think this is great and imo a helpful API.

@bumi bumi deleted the feat/decode-invoice branch November 16, 2023 14:54
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.

Add function to decode invoice
3 participants