Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 706 Bytes

eth-connect.tojsonrpcrequest.md

File metadata and controls

30 lines (20 loc) · 706 Bytes

Home > eth-connect > toJsonRpcRequest

toJsonRpcRequest() function

Should be called to valid json create payload object

Signature:

export declare function toJsonRpcRequest(method: string, params: any[]): {
    jsonrpc: string;
    id: number;
    method: string;
    params: any[];
};

Parameters

Parameter Type Description
method string
params any[]

Returns:

{ jsonrpc: string; id: number; method: string; params: any[]; }