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

# Batch Operations

> Efficiently process multiple operations with batch APIs

## Overview

Use batch APIs to query multiple users or perform bulk operations efficiently.

## Implementation

<CodeGroup>
  ```javascript JavaScript theme={null}
  // Batch get scores
  async function getLeaderboard(addresses) {
    const scores = await Promise.all(
      addresses.map(addr => zkScore.getScore(addr))
    );
    
    return addresses.map((addr, i) => ({
      address: addr,
      score: scores[i].total
    })).sort((a, b) => b.score - a.score);
  }
  ```
</CodeGroup>

## Related Documentation

* [JavaScript SDK](/sdk/javascript/getting-started)
