Class: Node

node.Node

(abstract) new Node(options)

Base class from which every other Node-like object inherits.

Parameters:
Name Type Description
options Object
Source:

Members

openWallet

Open and ensure primary wallet.

Source:

Methods

(private) bind(obj, event, listener)

Bind to an event on obj, save listener for removal.

Parameters:
Name Type Description
obj EventEmitter
event String
listener function
Source:

(private) error(err)

Emit and log an error.

Parameters:
Name Type Description
err Error
Source:

(private) handleClose()

Close node. Unbind all events.

Source:

(private) handleOpen()

Open node.

Source:

(private) handlePreopen()

Open node. Bind all events.

Source:

(private) init(options)

Initialize node.

Parameters:
Name Type Description
options Object
Source:

(private) initOptions(options)

Initialize options.

Parameters:
Name Type Description
options Object
Source:

location(name) → {String}

Create a file path from a name as well as the node's prefix.

Parameters:
Name Type Description
name String
Source:
Returns:
Type
String

uptime() → {Number}

Get node uptime in seconds.

Source:
Returns:
Type
Number