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

Issue generating invoice from grpc #6112

Closed
cryptosharks131 opened this issue Mar 21, 2023 · 1 comment
Closed

Issue generating invoice from grpc #6112

cryptosharks131 opened this issue Mar 21, 2023 · 1 comment

Comments

@cryptosharks131
Copy link

When calling the Invoice grpc endpoint like below, an error is returned.
stub.Invoice(node_pb2.InvoiceRequest(amount_msat=100000))

Error output:
TypeError: Message must be initialized with a dict: cln.InvoiceRequest

I was able to successfully call other endpoints (Ping/ConnectPeer) and pass arguments to them but was not able to get this one working.

@cryptosharks131
Copy link
Author

cryptosharks131 commented Mar 22, 2023

I was able to get this working by using the following format:
stub.Invoice(node_pb2.InvoiceRequest(amount_msat={'amount':{'msat':100000}}))

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

No branches or pull requests

1 participant