Utility to create an invoice based on either an authenticated lnd grpc instance or an opennode connection
invoice - returns an invoice with a payreq, id, description, createdAt, and
Given an invoice object and a request we want to create a root macaroon with a third party caveat, which both need to be satisfied in order to authenticate the macaroon
Returns serealized discharge macaroon, signed with the server's caveat key and with an attached caveat (if passed)
discharge macaroon
Utility to extract first party caveat value from a serialized root macaroon
See getFirstPartyCaveat
for what this value represents
Utility function to get a location string to describe where the server is. useful for setting identifiers in macaroons
Validates a macaroon and should indicate reason for failure if possible
will return true if passed or throw with failure
Generated using TypeDoc
Checks the status of an invoice given an id
{express.request} - request object from expressjs
{req.query.id} invoiceId - id of invoice to check status of
{req.lnd} [lnd] - ln-service authenticated grpc object
{req.opennode} [opennode] - authenticated opennode object for communicating with OpenNode API