How to use the ln-service.getChannels 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 / network / probe_destination.js View on Github external
getChannels: ['validate', ({}, cbk) => {
      // Exit early when there is no need to add an outgoing channel id
      if (!args.out_through) {
        return cbk();
      }

      return getChannels({lnd: args.lnd}, cbk);
    }],
github alexbosworth / balanceofsatoshis / balances / get_liquidity.js View on Github external
getChannels: ['validate', ({}, cbk) => {
        return getChannels({lnd: args.lnd}, cbk);
      }],
github alexbosworth / balanceofsatoshis / balances / get_balance.js View on Github external
      getChannels: ['lnd', ({lnd}, cbk) => getChannels({lnd}, cbk)],
github alexbosworth / balanceofsatoshis / swaps / swap_out.js View on Github external
getChannels: ['validate', ({}, cbk) => {
      return getChannels({lnd: args.lnd, is_active: true}, cbk);
    }],
github alexbosworth / balanceofsatoshis / routing / get_inbound_path.js View on Github external
      getChannels: ['validate', ({}, cbk) => getChannels({lnd}, cbk)],
github alexbosworth / balanceofsatoshis / network / open_channel.js View on Github external
getChannels: ['validate', ({}, cbk) => {
        return getChannels({lnd: args.lnd}, cbk);
      }],
github alexbosworth / balanceofsatoshis / network / hidden_pay.js View on Github external
    getChannels: ['lnd', ({lnd}, cbk) => getChannels({lnd}, cbk)],
github alexbosworth / balanceofsatoshis / wallets / get_report.js View on Github external
getChannels: ['getLnd', ({getLnd}, cbk) => {
      return getChannels({lnd: getLnd.lnd}, cbk);
    }],
github alexbosworth / balanceofsatoshis / swaps / rebalance.js View on Github external
      getInitialLiquidity: ['lnd', ({lnd}, cbk) => getChannels({lnd}, cbk)],
github alexbosworth / balanceofsatoshis / network / get_forwards.js View on Github external
      getChannels: ['validate', ({}, cbk) => getChannels({lnd}, cbk)],