node
This module allows you to get information about the node and blockchain. It can be accessed from the global variable node
.
getBlock
Get a tendermint block at the given height.
Parameters
height
-String|Number
: The target block height
Returns
Example
getHeight
Get the current height of the blockchain.
Returns
String
- The height of the node.
Example
getBlockInfo
Get a summary block at the given height. This block information is indexed by MakeOS (not Tendermint).
Parameters
height
-String|Number
: The target block height
Returns
String
- The height of the node.
Example
getValidators
Get a list of validators that processed a given block.
Parameters
height
-String|Number
: The target block height whose validators will be returned.
Returns
Object
- The result object
Example
isSyncing
Checks whether the node is currently synchronizing blocks and state with peers.
Returns
Boolean
Example
Last updated