Provider
Last updated
Was this helpful?
Last updated
Was this helpful?
Kind: global class
⇒ string
⇒ Promise.<*>
⇒ Promise.<*>
⇒ Promise.<*>
⇒ Promise.<Array>
[options]
object
options.url
string
Full json rpc http url
[options.timeout]
number
30*1000
Request time out in ms
[options.retry]
number
1
Retry number
[options.keepAlive]
boolean
false
Whether open the http keep-alive option
[options.logger]
object
Logger with info
and error
string
Gen a random json rpc id. It is used in call
method, overwrite it to gen your own id.
Promise.<*>
Call a json rpc method with params
data
object
data.method
string
Json rpc method name.
[data.params]
array
Json rpc method params.
Example
Promise.<*>
Call a json rpc method with params
method
string
Json rpc method name.
...params
Array.<any>
Json rpc method params.
Example
Promise.<*>
Send a json rpc method request
method
string
Json rpc method name.
[params]
array
Json rpc method params.
Example
Promise.<Array>
Batch call json rpc methods with params
array
Array.<object>
Array of object with "method" and "params"
Example
Kind: instance method of
Kind: instance method of
Returns: Promise.<*>
- Json rpc method return value.
Kind: instance method of
Returns: Promise.<*>
- Json rpc method return value.
Kind: instance method of
Returns: Promise.<*>
- Json rpc method return value.
Kind: instance method of