Properties
Optional isMetaMask
isMetaMask?: boolean
Optional isStatus
isStatus?: boolean
Optional host
host?: string
Optional path
path?: string
Optional sendAsync
sendAsync?: ((request: JSONRPCRequestPayload, callback: ((error: any, response: JSONRPCResponsePayload) => void)) => void)
Type declaration
-
- (request: JSONRPCRequestPayload, callback: ((error: any, response: JSONRPCResponsePayload) => void)): void
-
Parameters
-
request: JSONRPCRequestPayload
-
callback: ((error: any, response: JSONRPCResponsePayload) => void)
-
- (error: any, response: JSONRPCResponsePayload): void
-
Parameters
-
error: any
-
response: JSONRPCResponsePayload
Returns void
Returns void
Optional send
send?: ((request: JSONRPCRequestPayload, callback: ((error: any, response: JSONRPCResponsePayload) => void)) => void)
Type declaration
-
- (request: JSONRPCRequestPayload, callback: ((error: any, response: JSONRPCResponsePayload) => void)): void
-
Parameters
-
request: JSONRPCRequestPayload
-
callback: ((error: any, response: JSONRPCResponsePayload) => void)
-
- (error: any, response: JSONRPCResponsePayload): void
-
Parameters
-
error: any
-
response: JSONRPCResponsePayload
Returns void
Returns void
Optional request
request?: ((request: JSONRPCRequestPayload) => Promise<any>)
Type declaration
-
- (request: JSONRPCRequestPayload): Promise<any>
-
Parameters
-
request: JSONRPCRequestPayload
Returns Promise<any>