Constructor
new HttpProvider(urlString)
- Source:
Constructor.
Parameters:
Name | Type | Description |
---|---|---|
urlString |
string | URL of the blockchain API. eg. http://username:password@th.no.de.ip:port |
Methods
(async) rawCall(method, args)
- Source:
Executes a request to the blockchain via JSONRPC POST request.
Parameters:
Name | Type | Description |
---|---|---|
method |
string | Blockchain method to call. eg. 'sendtocontract' |
args |
array | Raw arguments for the call. [contractAddress, data, amount?, gasLimit?, gasPrice?] |