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

Error[E0560]: struct SendPaymentSyncRequest has no field named dest_custom_records - lnd_rest - (pay_invoice) #1

Open
ishi0k opened this issue May 10, 2024 · 0 comments

Comments

@ishi0k
Copy link

ishi0k commented May 10, 2024

Hello @zenoxygen
Error SendPaymentSyncRequest
I am using your library to work with RUST, the part to send a uanso payment (pay_invoice) works well for me, but additionally, I want to be able to add a description/note when sending the payment, as I have investigated, I should use ( dest_custom_records: ) (An optional field that can be used to pass an arbitrary set of TLV records to a peer which understands the new records. This can be used to pass application specific data during the payment attempt. Record types are required to be in the custom range >= 65536. When using REST, the values must be encoded as base64.) https://api.lightning.community/api/lnd/lightning/send-payment-sync/index.html#lnrpcsendrequestdestcustomrecordsentry

Even though that field is not in your code, I have added it locally, but when compiling I get this error: (error[E0560]: struct SendPaymentSyncRequest has no field named dest_custom_records) even though I already added it locally it does not finish If I recognize it, do you know how I can solve it? And additionally if you know if to add a note or description when sending the payment the ideal in LND is to use the field (dest_custom_records) or if there is another way to do it.

Thanks for your help.

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