Methods
(async) broadcastTx(params, idopt) → {object}
Broadcast a valid signed transaction that will be gossiped about to other nodes
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||
---|---|---|---|---|---|---|---|---|---|---|
params |
object
|
body parameters passed to the specified json-rpc method
|
||||||||
id |
string
|
<optional> |
"1" | identifying number for the json-rpc request |
Returns:
- Type:
-
object
json-rpc response from the chain
(async) createRawArbitTransfer(params, idopt) → {object}
Create a raw transaction for transferring arbits between addresses
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object
|
body parameters passed to the specified json-rpc method
|
||||||||||||||||||||||||||||||||||
id |
string
|
<optional> |
"1" | identifying number for the json-rpc request |
Returns:
- Type:
-
object
json-rpc response from the chain
(async) createRawAssetTransfer(params, idopt) → {object}
Create a new asset on chain
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object
|
body parameters passed to the specified json-rpc method
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id |
string
|
<optional> |
"1" | identifying number for the json-rpc request |
Returns:
- Type:
-
object
json-rpc response from the chain
(async) createRawPolyTransfer(params, idopt) → {object}
Create a raw transaction for transferring polys between addresses
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object
|
body parameters passed to the specified json-rpc method
|
||||||||||||||||||||||||||||||
id |
string
|
<optional> |
"1" | identifying number for the json-rpc request |
Returns:
- Type:
-
object
json-rpc response from the chain
(async) getBlockByHeight(params, idopt) → {object}
Lookup a block from history by the provided id
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||
---|---|---|---|---|---|---|---|---|---|---|
params |
object
|
body parameters passed to the specified json-rpc method
|
||||||||
id |
string
|
<optional> |
"1" | identifying number for the json-rpc request |
Returns:
- Type:
-
object
json-rpc response from the chain
(async) getBlockById(params, idopt) → {object}
Lookup a block from history by the provided id
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||
---|---|---|---|---|---|---|---|---|---|---|
params |
object
|
body parameters passed to the specified json-rpc method
|
||||||||
id |
string
|
<optional> |
"1" | identifying number for the json-rpc request |
Returns:
- Type:
-
object
json-rpc response from the chain
(async) getLatestBlock(idopt) → {object}
Return the latest block in the chain
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
id |
string
|
<optional> |
"1" | identifying number for the json-rpc request |
Returns:
- Type:
-
object
json-rpc response from the chain
(async) getMempool(idopt) → {object}
Return the entire mempool of the node
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
id |
string
|
<optional> |
"1" | identifying number for the json-rpc request |
Returns:
- Type:
-
object
json-rpc response from the chain
(async) getTransactionById(params, idopt) → {object}
Lookup a transaction from history by the provided id
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||
---|---|---|---|---|---|---|---|---|---|---|
params |
object
|
body parameters passed to the specified json-rpc method
|
||||||||
id |
string
|
<optional> |
"1" | identifying number for the json-rpc request |
Returns:
- Type:
-
object
json-rpc response from the chain
(async) getTransactionFromMempool(params, idopt) → {object}
Lookup a transaction from the mempool by the provided id
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||
---|---|---|---|---|---|---|---|---|---|---|
params |
object
|
body parameters passed to the specified json-rpc method
|
||||||||
id |
string
|
<optional> |
"1" | identifying number for the json-rpc request |
Returns:
- Type:
-
object
json-rpc response from the chain
(async) lookupBalancesByAddresses(params, idopt) → {object}
Lookup the balances of specified addresses
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||
---|---|---|---|---|---|---|---|---|---|---|
params |
Object
|
body parameters passed to the specified json-rpc method
|
||||||||
id |
string
|
<optional> |
"1" | identifying number for the json-rpc request |
Returns:
- Type:
-
object
json-rpc response from the chain
setApiKey(apiKey) → {void}
Allows setting a different x-api-key than the default
- Source:
Parameters:
Name | Type | Description |
---|---|---|
apiKey |
string
|
api-key for "x-api-key" |
Returns:
- Type:
-
void
setUrl(url) → {void}
Allows setting a different url than the default from which to create and accept RPC connections
- Source:
Parameters:
Name | Type | Description |
---|---|---|
url |
string
|
url string for instance |
Returns:
- Type:
-
void