zilswap-sdk / Exports / batch
Ƭ BatchResponse: { [key in string]: any}
▸ Const
sendBatchRequest(rpcEndpoint
, requests
): Promise
<BatchResponse>
Sends a series of requests as a batch to the Zilliqa API.
Name | Type | Description |
---|---|---|
rpcEndpoint |
string |
The rpc endpoint to query. |
requests |
BatchRequest[] | - |
Promise
<BatchResponse>
Promise<{ [key in string]: BatchResponse }> Map of RPC responses keyed by the request ID.