Skip to content

[feature]: more clearly define the payment_addr field in all documentation #7438

@AndySchroder

Description

@AndySchroder

lncli addinvoice yields a payment_addr field. When using lncli sendpayment and manually specifying a payment, a pay_addr field is required. Similarly for lncli buildroute, we must pass a payment_addr in order for lncli sendtoroute to actually work with the route that was built. What is this parameter for? I can't find it in any BOLTS.

I "think" it is supposed to be the payment_secret, which is mentioned here https://github.com/lightning/bolts/blob/master/04-onion-routing.md#payload-for-the-last-node and https://github.com/lightning/bolts/blob/master/11-payment-encoding.md#tagged-fields . Also, lightning/bolts#643 (comment) suggests a payment_address parameter, which I think is the same thing.

If I run lncli addinvoice and put the payment_request output into https://www.bolt11.org/ the payment_secret seems to match the payment_addr.

Please clarify the documentation so that so much interrogation isn't required to understand the payment_addr field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    beginnerIssues suitable for new developersdocumentationDocumentation changes that do not affect code behaviourenhancementImprovements to existing features / behaviourgood first issueIssues suitable for first time contributors to LNDup for grabsPRs which have been abandoned by their original authors and can be taken up by someone else

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions