elisk v0.2.0 Elisk.Node

Functions for retrieving information from node.

The responses for each API request have a common basic structure:

"data": {}, //Contains the requested data
"meta": {}, //Contains additional metadata, e.g. the values of `limit` and `offset`
"links": {} //Will contain links to connected API calls from here, e.g. pagination links

Summary

Functions

Get Node constants

Get pooled transactions in the node

Get Node status

Get Node forging status

Functions

constants()

Get Node constants.

Method: GET

Elisk.Node.constants()

=> { data, meta, links }

pooled_transactions(state)

Get pooled transactions in the node.

Method: GET

Params: state

Elisk.Node.pooled_transactions(“unconfirmed”)

=> { data, meta, links }

status()

Get Node status.

Method: GET

Elisk.Node.status()

=> { data, meta, links }

status_forging()

Get Node forging status.

Method: GET

Elisk.Node.status_forging()

=> { data, meta, links }

update_forging_status(publicKey, password, forging)

Put Node forging status.

Method: PUT

Params: publicKey, password, forging

Elisk.Node.update_forging_status()

=> { data, meta, links }