Constructors
constructor
-
Parameters
-
-
-
Default value config: RPCConfig = { timeout: 30000 }
Accessors
name
-
Returns string
Methods
call
- call(...params: (string | number | object)[]): Promise<any>
-
Parameters
-
Rest ...params: (string | number | object)[]
Returns Promise<any>
getPayload
- getPayload(...params: (string | number | object)[]): { id: number; jsonrpc: string; method: string; params: any[] }
-
Parameters
-
Rest ...params: (string | number | object)[]
Returns { id: number; jsonrpc: string; method: string; params: any[] }
-
id: number
-
jsonrpc: string
-
method: string
-
params: any[]