How to use the ln-service.getForwards 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 / routing / get_fees_chart.js View on Github external
getForwards: ['start', ({start}, cbk) => {
        return getForwards({
          limit,
          after: start.toISOString(),
          before: new Date().toISOString(),
          lnd: args.lnd,
        },
        cbk);
      }],
github alexbosworth / balanceofsatoshis / network / get_forwards.js View on Github external
getForwards: ['validate', ({}, cbk) => {
        const after = new Date(now() - (days || numDays)*msPerDay).toISOString();
        const before = new Date().toISOString();

        return getForwards({after, before, lnd, limit}, cbk);
      }],