> ## Documentation Index
> Fetch the complete documentation index at: https://docs.initia.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Get average block time

> Returns the average block time in seconds, computed over the most recent blocks.



## OpenAPI

````yaml /api-reference/rollup-indexer/openapi.yaml get /indexer/block/v1/avg_blocktime
openapi: 3.1.0
info:
  title: Indexer API
  description: >-
    Query indexed data including transactions, blocks, NFTs, and token holders
    across Initia Stack chains.
  version: 1.0.0
servers:
  - url: https://rollytics-api-evm-1.anvil.asia-southeast.initia.xyz
    description: evm-1 (testnet)
  - url: https://rollytics-api-move-1.anvil.asia-southeast.initia.xyz
    description: move-1 (testnet)
  - url: https://rollytics-api-wasm-1.anvil.asia-southeast.initia.xyz
    description: wasm-1 (testnet)
security: []
paths:
  /indexer/block/v1/avg_blocktime:
    get:
      tags:
        - Blocks
      summary: Get average block time
      description: >-
        Returns the average block time in seconds, computed over the most recent
        blocks.
      operationId: getAvgBlockTime
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  avg_block_time:
                    type: number
                    description: Average block time in seconds.

````