> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dzap.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Batch Calls

> sendBatchCalls and waitForBatchTransactionReceipt.

## sendBatchCalls

Bundles multiple write calls into one wallet prompt via EIP-5792 (`wallet_sendCalls`). Returns `null` if the connected wallet doesn't support it.

```ts theme={null}
const result = await dzap.sendBatchCalls({
  walletClient,
  calls: [
    { to: '0xToken1', data: encodedApproveCallOne },
    { to: '0xToken2', data: encodedApproveCallTwo },
  ],
});
// result => { id: string } | null
```

## waitForBatchTransactionReceipt

Companion to `sendBatchCalls`. Waits until every sub-call in the batch has confirmed, using the `id` returned above.

```ts theme={null}
if (result) {
  const receipt = await dzap.waitForBatchTransactionReceipt({
    walletClient,
    batchHash: result.id,
  });
}
```
