Skip to content

Looking for help! Sending a KEYSEND Payment via the REST API. HOW???? #6357

Discussion options

You must be logged in to vote

I feel like the head of a team of monkeys that just finished the last page typing out Shakespear's complete works!

I got it to work..... :-) Now if you can point me to a good place in the docs I'll figure out how to explain this and make it easy becasue honestly this is the 3rd time I've attempted this over the last 6 months and I've given up every other time and just used LNPay's API which is buttery smooth and easy.

    pre_image = token_hex(32)
    pre_image = "7e85e6bb1fdccd04c1085f1724ee11ebbe32ab6ff9411173fe53032635f37562"
    payment_hash = sha256(bytes.fromhex(pre_image))
    payment_hash_should_be = "972f041144a5d97d081360f2e8cb84f3bd569d93a1256a4cf721566e553f5ab0"
    print(paym…

Replies: 5 comments 13 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@guggero
Comment options

@Jellybean001coder
Comment options

@Jellybean001coder
Comment options

@Jellybean001coder
Comment options

Comment options

You must be logged in to vote
4 replies
@guggero
Comment options

@brianoflondon
Comment options

@guggero
Comment options

@brianoflondon
Comment options

Answer selected by brianoflondon
Comment options

You must be logged in to vote
5 replies
@guggero
Comment options

@okemechris
Comment options

@guggero
Comment options

@okemechris
Comment options

@guggero
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants