Skip to content

Comments

glcli: new commands to test payments#670

Draft
Lagrang3 wants to merge 6 commits intoBlockstream:mainfrom
Lagrang3:glcli-newaddr
Draft

glcli: new commands to test payments#670
Lagrang3 wants to merge 6 commits intoBlockstream:mainfrom
Lagrang3:glcli-newaddr

Conversation

@Lagrang3
Copy link
Collaborator

This PR adds simplified user commands to be able to get funds and open channels, as well as withdraw and close.

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
.await
.map_err(|e| Error::custom(e.message()))?
.into_inner();
println!("{:?}", res);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you think it'd be possible to annotate the protobuf messages with a JSON serialization, allowing us to return a machine readable JSON object on stdout (and log to stderr) so that we can for example pipe it into jq for scripting? Just wondering if that's somethign that would be easy 🤔

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, probably more of a follow-up than a blocker here.

@cdecker
Copy link
Collaborator

cdecker commented Feb 20, 2026

ACK 1fa46ea

(I know this is still a draft, but wanted to see what's changing :-) )

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