Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 810 Bytes

eth-connect.tobatchpayload.md

File metadata and controls

29 lines (19 loc) · 810 Bytes

Home > eth-connect > toBatchPayload

toBatchPayload() function

Should be called to create batch payload object

Signature:

export declare function toBatchPayload(messages: RPCSendableMessage[]): {
    jsonrpc: string;
    id: number;
    method: string;
    params: any[];
}[];

Parameters

Parameter Type Description
messages RPCSendableMessage[] An array of objects with method (required) and params (optional) fields

Returns:

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