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

feat: add express endpoints for lightning invoice #5643

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

007harshmahajan
Copy link

Adding express apis

  • list invoices
  • update wallet coin specific

Ticket: BTC-1836

@007harshmahajan 007harshmahajan marked this pull request as ready for review February 26, 2025 16:36
@007harshmahajan 007harshmahajan requested review from a team as code owners February 26, 2025 16:36
Add
- list invoices
- update wallet coin specific

Ticket: BTC-1836
const bitgo = req.bitgo;

const params = decodeOrElse(InvoiceQuery.name, InvoiceQuery, req.query, (error) => {
throw new ApiResponseError('Invalid query parameters for listing lightning invoices', 400);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
throw new ApiResponseError('Invalid query parameters for listing lightning invoices', 400);
throw new ApiResponseError('Invalid query parameters for listing lightning invoices' ${error}, 400);

It's fine to log the error here, we don't require a passphrase for this route. lgtm other than this.

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

Successfully merging this pull request may close these issues.

4 participants