Skip to main content

Batch CU Cost

Formula:
Batch CU Cost = N^exp × Base CU Cost
Where:
  • N: Batch number.
  • exp: Batch multiplier exponent.
    • 0.5 for Blockchain API endpoints.
    • 0.8 for all other API groups.
  • Base CU Cost: The CU cost of requesting a single token using the corresponding multiple-token endpoint (different from the CU cost of the single-token endpoint).
  • The Batch CU Cost is rounded up to the nearest whole number (0 decimal places).

Examples

Example 1: DeFi API

Request N = 10 tokens using /defi/multi_price:
Batch CU Cost = 10^0.8 × 3 = 18.93 → 19 CU

Example 2: Blockchain API

Request N = 100 accounts using /blockchain/v1/account/detail/multiple:
Batch CU Cost = 100^0.5 × 5 = 10 × 5 = 50 CU
Notes
  • Using a batch endpoint is always more cost-efficient than making the equivalent number of single-endpoint requests.
  • Users should consider purchasing a Business plan to access batch endpoints.
  • The larger the batch size (N), the greater the effective discount. However, each endpoint has a maximum supported batch size (n_max), which must not be exceeded.

n_max Table for Each API

n_max Table for Blockchain API