Skip to content

getDepositAddress: Add missing LNX invoice field #53

Description

@juscamarena

Issue type

  • bug
  • missing functionality
  • performance
  • feature request

Brief description

LNX lighting deposit generation returns the id of the payment and does not show the lightning invoice.

Steps to reproduce

generateDeposit

rest.getDepositAddress({
wallet: 'exchange',
method: 'lnx',
currency: 'lnx',
amount,
opRenew: 1, // always 1 cannot reuse ln invoices
});

Additional Notes:

The public api for the frontend returns the field set as invoice:

Example:

{"worked":true,"message":null,"invoice":"lnbc20m1p0yg0depp5dncaf5s4eg4z0dwg5xpaet4568yr6umgtgyylwlhhtzl7280jptqdp5xu6xxetzxdjnwe3kxgek2wpevyckzcek8p3nvvf3x43rzv33xa3scqzpgxqzjcadpzulmsa0s0sm394934ws62hx2ggg7mjtunr4yrgjfxpf0tewk5mw82le8st2yzrg5fpxh9574gkrwq7x6rphp90klm44patfx2jtsq0jw0m0","address":"74ceb3e7f623e89a1ac68c6115b1217c"}

Lightning invoices also expire so not sure limiting opRenew is a good idea.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions