---
title: "Get the pool's current batch."
method: GET
path: "/cosmos/liquidity/v1beta1/pools/{pool_id}/batch"
tags: ["Query"]
---

# Get the pool's current batch.

`GET /cosmos/liquidity/v1beta1/pools/{pool_id}/batch`

## Request

- The document declares no server URL.
- Auth: none declared

Returns the current batch of the pool that corresponds to the pool_id.

## Path parameters

- `pool_id` string, uint64, required

## Response `200`

A successful response.

- object: the response type for the QueryLiquidityPoolBatchResponse RPC method. Returns the liquidity pool batch that corresponds to the requested pool_id.
  - `batch` object: PoolBatch defines the batch or batches of a given liquidity pool that contains indexes of deposit, withdraw, and swap messages. Index param increments by 1 if the pool id is same.
    - `pool_id` string, uint64
    - `index` string, uint64
    - `begin_height` string, int64
    - `deposit_msg_index` string, uint64
    - `withdraw_msg_index` string, uint64
    - `swap_msg_index` string, uint64
    - `executed` boolean

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error
- `default`: An unexpected error response.

## Changes

- **2021-06-14** `72ec621a68fb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/tendermint/apis/cosmos-sdk-liquidity-module-rest-and-grpc-gateway-docs/changes/cosmos/liquidity/v1beta1/pools/:pool_id/batch/get.md)

---

[API](https://skmtc.dev/tendermint/apis/cosmos-sdk-liquidity-module-rest-and-grpc-gateway-docs.md) - [All operations](https://skmtc.dev/tendermint/apis/cosmos-sdk-liquidity-module-rest-and-grpc-gateway-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/tendermint/apis/cosmos-sdk-liquidity-module-rest-and-grpc-gateway-docs/revisions/ba84c1cbfb4b?raw)
