Developer Guide

utils/rpc-caller

Index

Classes

Interfaces

Functions

Functions

getRandomId

getRandomId(): number

Defined in contractkit/src/utils/rpc-caller.ts:37

Returns: number

rpcCallHandler

rpcCallHandler(payload: JsonRpcPayload, handler: function, callback: Callback‹JsonRpcResponse›): void

Defined in contractkit/src/utils/rpc-caller.ts:9

Parameters:

payload: JsonRpcPayload

handler: function

▸ (p: JsonRpcPayload): Promise‹any›

Parameters:

Name

Type

p

JsonRpcPayload

callback: Callback‹JsonRpcResponse›

Returns: void