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

Trouble using lookup_invoice #12

Open
ssbright opened this issue Sep 22, 2022 · 1 comment
Open

Trouble using lookup_invoice #12

ssbright opened this issue Sep 22, 2022 · 1 comment

Comments

@ssbright
Copy link

ssbright commented Sep 22, 2022

Hello, I am having trouble understanding how to use the lookup_invoice function. I want to feed it a payment hash as input. It seems like I need to encode the hash into bytes though? Can you please share code or any thing that can help me what the proper input is?

Or am I supposed to feed it the r_hash? Because that is also not working for me.

Thanks

@nickfarrow
Copy link

lnd.lookup_invoice(r_hash_str=b64decode(rhash).hex())

from
https://github.com/SatSale/SatSale/blob/master/node/lnd.py

Hope that helps!

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

2 participants