MCPcopy Create free account
hub / github.com/CPChain/chain / BatchCall

Method BatchCall

api/rpc/client.go:327–330  ·  view source on GitHub ↗

BatchCall sends all given requests as a single batch and waits for the server to return a response for all of them. In contrast to Call, BatchCall only returns I/O errors. Any error specific to a request is reported through the Error field of the corresponding BatchElem. Note that batch calls may

(b []BatchElem)

Source from the content-addressed store, hash-verified

325//
326// Note that batch calls may not be executed atomically on the server side.
327func (c *Client) BatchCall(b []BatchElem) error {
328 ctx := context.Background()
329 return c.BatchCallContext(ctx, b)
330}
331
332// BatchCall sends all given requests as a single batch and waits for the server
333// to return a response for all of them. The wait duration is bounded by the

Callers 1

TestClientBatchRequestFunction · 0.80

Calls 1

BatchCallContextMethod · 0.95

Tested by 1

TestClientBatchRequestFunction · 0.64