@cyberchain/smart-contract-wrapper
@cyberchain/smart-contract-wrapper / RPC_HTTP_Provider
Defined in: src/rpc-provider-http.ts:27
HTTP provider for JSON-RPC requests
new RPC_HTTP_Provider(
url,options?):RPC_HTTP_Provider
Defined in: src/rpc-provider-http.ts:41
The HTTP or HTTPS url to connect to the node
string | URL
Options
RPC_HTTP_Provider
url:
URL
Defined in: src/rpc-provider-http.ts:28
destroy():
void
Defined in: src/rpc-provider-http.ts:148
Closes all the active connections
void
rpcRequest(
method,params,timeout):Promise<any>
Defined in: src/rpc-provider-http.ts:79
Performs a JSON-RPC request
string
RPC Method
any[]
Method parameters
number
Timeout in ms
Promise<any>
The JSON RPC result