Home > eth-connect > toJsonRpcRequest
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[];
};
Parameter | Type | Description |
---|---|---|
method | string | |
params | any[] |
Returns:
{ jsonrpc: string; id: number; method: string; params: any[]; }