---
title: "QueryBlocksUntilNextEpoch returns the number of blocks until the next epoch starts and validator updates are sent to the consumer chains"
method: GET
path: "/interchain_security/ccv/provider/blocks_until_next_epoch"
tags: ["Query"]
---

# QueryBlocksUntilNextEpoch returns the number of blocks until the next epoch starts and validator updates are sent to the consumer chains

`GET /interchain_security/ccv/provider/blocks_until_next_epoch`

## Request

- Base URL: `https://api.mantrachain.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mantrachain.io/interchain_security/ccv/provider/blocks_until_next_epoch`
- Auth: none declared

## Response `200`

A successful response.

- object
  - `blocks_until_next_epoch` string, uint64

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/mantrachain/apis/mantra-grpc-gateway-docs.md) - [All operations](https://skmtc.dev/mantrachain/apis/mantra-grpc-gateway-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/mantrachain/apis/mantra-grpc-gateway-docs/revisions/641ce457f7fd?raw)
