# blocksFromDepth **Type:** GraphQL queries **Description:** Retrieves blocks based on their **depth** in the Kadena blockchain. In Kadena, each new block extends the chain by one unit, and the term **depth** refers to how far a block is from the current chain tip (the most recent block). - A block with a depth of `0` is the latest block (the chain head). - A block with a depth of `1` is one block behind the tip, and so on. Because new blocks can occasionally be reorganized near the tip, specifying a **minimumDepth** helps ensure that only blocks that are deep enough — and therefore finalized and stable — are returned. For example, a `minimumDepth` of `20` means only blocks that are at least 20 blocks behind the current tip will be included in the results, reducing the chance of including blocks that might later be replaced due to a chain reorganization. Use this query to fetch finalized blocks across one or more chains. ## Arguments - chainIds (String): The chain IDs to retrieve blocks from. - minimumDepth (Int): The minimum depth of the blocks to retrieve. Blocks closer to the tip than this depth will be excluded. - after (String): Cursor to start paginating **after** a specific result. Used for forward pagination. - before (String): Cursor to start paginating **before** a specific result. Used for backward pagination. - first (Int): Maximum number of balance records to return when paginating forward. - last (Int): Maximum number of balance records to return when paginating backward. ## Response **Type:** QueryBlocksFromDepthConnection **Description:** undefined ### Fields - edges (QueryBlocksFromDepthConnectionEdge) - pageInfo (PageInfo) - totalCount (Int)