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

# Get all withdraw messages in the pool's current batch.

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

## Request

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

Returns a list of all withdraw messages in the current batch of the pool with pagination result.

## Path parameters

- `pool_id` string, uint64, required

## Query parameters

- `pagination.key` string, byte
- `pagination.offset` string, uint64
- `pagination.limit` string, uint64
- `pagination.count_total` boolean

## Response `200`

A successful response.

- object: the response type for the QueryPoolBatchWithdraw RPC method. This includes a list of all currently existing withdraw messages of the batch and paging results that contain next_key and total count.
  - `withdraws` object[]
    - `msg_height` string, int64
    - `msg_index` string, uint64
    - `executed` boolean
    - `succeeded` boolean
    - `to_be_deleted` boolean
    - `msg` object: `MsgWithdrawWithinBatch` defines an `sdk.Msg` type that supports submitting a withdraw request to the batch of the liquidity pool. Withdraw is submitted to the batch from the Liquidity pool with the specified `pool_id`, `pool_coin` of the pool. This request is stacked in the batch of the liquidity pool, is not processed immediately, and is processed in the `endblock` at the same time as other requests. See: https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
      - `withdrawer_address` string, sdk.AccAddress: account address of the origin of this message
      - `pool_id` string, uint64
      - `pool_coin` object: Coin defines a token with a denomination and an amount. NOTE: The amount field is an Int which implements the custom method signatures required by gogoproto.
        - `denom` string
        - `amount` string
  - `pagination` object: pagination defines the pagination in the response. Not supported on this version.
    - `next_key` string, byte
    - `total` string, uint64

## 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/withdraws/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)
