How to use the ln-service.getNode 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
getNode: ['validate', ({}, cbk) => {
        // Exit early when there is no via node specified
        if (!args.via) {
          return cbk();
        }

        return getNode({lnd: args.lnd, public_key: args.via}, cbk);
      }],
github alexbosworth / balanceofsatoshis / swaps / rebalance.js View on Github external
getFees: ['getPublicKey', 'lnd', ({getPublicKey, lnd}, cbk) => {
        return getNode({lnd, public_key: getPublicKey.public_key}, cbk);
      }],
github alexbosworth / balanceofsatoshis / routing / get_inbound_path.js View on Github external
getNode: ['validate', ({}, cbk) => {
        return getNode({lnd, public_key: destination}, cbk);
      }],