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: get info metadata #981

Merged
merged 1 commit into from
Jan 17, 2025
Merged

feat: get info metadata #981

merged 1 commit into from
Jan 17, 2025

Conversation

rolznz
Copy link
Contributor

@rolznz rolznz commented Jan 13, 2025

Closes #785

See example output: getAlby/js-sdk#287

Merges the existing app metadata with two general fields (the id and name of the app)

Allows keysend receive support to be added in getalby.com for accounts that are connected to an Alby Hub subwallet

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@rolznz rolznz requested review from bumi and im-adithya January 13, 2025 08:04
if app != nil {
metadata := map[string]interface{}{}
if app.Metadata != nil {
jsonErr := json.Unmarshal(app.Metadata, &metadata)
Copy link
Contributor

Choose a reason for hiding this comment

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

this means we also return the metadata that the apps are setting?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, do you see any issues with this?

@rolznz
Copy link
Contributor Author

rolznz commented Jan 17, 2025

Merging for now

@rolznz rolznz merged commit 9b9199f into master Jan 17, 2025
9 checks passed
@rolznz rolznz deleted the feat/get-info-metadata branch January 17, 2025 06:51
@rolznz rolznz mentioned this pull request Dec 7, 2024
5 tasks
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 metadata to get_info NWC command
2 participants