Replying to Avatar Nice and Kind Vic

#asknostr #devs #lnd

Anyone got a working example of LND TrackPayment via REST?

I try this....

curl -k --header "Grpc-Metadata-macaroon:02010304whatevs" https://f.q.d.n:11234/v2/router/track/{payment_hash}

where {payment_hash} is passed as hexadecimal (string 64 in length for 32 bytes).

error returned claims invalid hash length of 48, want 32

my next move is to convert to bytes and base64 as that error about 48 could be thinking the 64 passed in is in base64.

Avatar
Nice and Kind Vic 2y ago

Yup. Expects base64, url encoded.

nostr:nevent1qqsrdhnxsn2wg553t27kgx6mx6lc0myw8ea55x6ucz87madqldedp6cpvemhxue69uhkv6tvw3jhytnwdaehgu3wwa5kuef0dec82c3309urvur209cxgdrjxacksvn809ek56rkdfjrjmpjddknv6rwd56xzmtyde48j6nhxv6rvdmx0ycr2unxxpckvuphddaxz0mzwfhkzerrv9ehg0t5wf6k2q3qyx6pjypd4r7qh2gysjhvjd9l2km6hnm4amdnjyjw3467fy05rf0qxpqqqqqqz5nqrhr

Reply to this note

Please Login to reply.

Discussion

No replies yet.