Class: Lightning

Lightning(settingsopt) → {Lightning}

Manage a Lightning node.

Constructor

new Lightning(settingsopt) → {Lightning}

Create an instance of the Lightning Service.
Parameters:
Name Type Attributes Description
settings Object <optional>
Settings.
Source:
Returns:
Type
Lightning

Methods

(async) _makeRPCRequest(method, paramsopt) → {Object|String}

Make an RPC request through the Lightning UNIX socket.
Parameters:
Name Type Attributes Description
method String Name of method to call.
params Array <optional>
Array of parameters.
Source:
Returns:
Respond from the Lightning node.
Type
Object | String