NanoMemoTools.node module
- Source:
Members
(inner, constant) DEFAULT_SERVER
Default Nano Node Server
- Source:
Methods
(inner) block_info(hash, urlopt, usernameopt, passwordopt) → {Promise}
This function requests information of a Nano Block from a given RPC server
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
hash |
string | hash identifier for requested Nano Block | ||
url |
string |
<optional> |
DEFAULT_SERVER | target RPC server to send the request |
username |
string |
<optional> |
username for Nano Node RPC authentication | |
password |
string |
<optional> |
password | password for Nano Node RPC authentication |
- Source:
Returns:
Promise object represents the fields returned from an RPC block_info request
- Type
- Promise
(inner) blocks_info(hashes, urlopt, usernameopt, passwordopt) → {Promise}
This function requests information of one or more Nano Blocks from a given RPC server
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
hashes |
array | array of hash identifiers for requested Nano Blocks | ||
url |
string |
<optional> |
DEFAULT_SERVER | target RPC server to send the request |
username |
string |
<optional> |
username for Nano Node RPC authentication | |
password |
string |
<optional> |
password | password for Nano Node RPC authentication |
- Source:
Returns:
Promise object represents the fields returned from an RPC block_info request
- Type
- Promise