Home > eth-connect > toBatchPayload
Should be called to create batch payload object
Signature:
export declare function toBatchPayload(messages: RPCSendableMessage[]): {
jsonrpc: string;
id: number;
method: string;
params: any[];
}[];
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[]; }[]