How to use the ln-service.getPayment function in ln-service

To help you get started, we’ve selected a few ln-service examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alexbosworth / balanceofsatoshis / swaps / swap_out.js View on Github external
({decodeExecutionRequest, recover}, cbk) =>
    {
      const executionRequest = decodeExecutionRequest || {};

      const id = executionRequest.id || recover.execution_id;

      return getPayment({id, lnd: args.lnd}, cbk);
    }],
github alexbosworth / balanceofsatoshis / lnd / find_record.js View on Github external
getPayment: ['validate', ({}, cbk) => {
        if (query.length !== standardIdHexLength) {
          return cbk(null, {});
        }

        return getPayment({lnd, id: query}, cbk);
      }],