batch
This module exposes batching defaults used by the SDK's viem transports and paginated Subsquid helpers.
Exports
BATCH_CONFIGS— per-chain viem batch settings for HTTP transport and client-side batchingSUBSQUID_PAGINATION_LIMIT— default page size used by paginated indexer helpers
import { BATCH_CONFIGS, SUBSQUID_PAGINATION_LIMIT } from "@gmx-io/sdk/configs/batch";
Use this module when you provide custom viem clients or build your own paginated Subsquid fetch loops.
When you inject a custom viem publicClient, carry over BATCH_CONFIGS[chainId].client instead of relying on viem defaults. The SDK's batch config raises the client-side multicall calldata limit to 1024 * 1024 bytes; without it, large GMX multicalls may be split into many smaller RPC requests.