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

# Get block DAG information

> Provides information about the Directed Acyclic Graph (DAG) structure of the Kaspa BlockDAG. Returns number of blocks in the DAG, number of tips in the DAG, hash of the selected parent block, difficulty of the selected parent block, selected parent block blue score, selected parent block time.

## Cost

This endpoint costs **0.1 RU** (Request Units) per call.


## OpenAPI

````yaml GET /v1/rpc/getBlockDagInfo
openapi: 3.0.0
info:
  title: Kaspa Developer Platform (KDP) API
  description: >-
    A high-performance REST API providing real-time and historical data from the
    Kaspa blockchain
  version: '1.0'
  contact: {}
servers:
  - url: https://api.kas.fyi
    description: Mainnet API
security: []
tags:
  - name: Address
    description: Operations related to Kaspa addresses
  - name: Block
    description: Operations related to Kaspa blocks
  - name: Transaction
    description: Operations related to Kaspa transactions
  - name: Token
    description: Operations related to KRC20 tokens
  - name: Kaspa Node RPC Proxy
    description: Direct proxy to Kaspa node RPC methods
paths:
  /v1/rpc/getBlockDagInfo:
    get:
      tags:
        - Kaspa Node RPC Proxy
      summary: Get block DAG information
      description: >-
        Provides information about the Directed Acyclic Graph (DAG) structure of
        the Kaspa BlockDAG. Returns number of blocks in the DAG, number of tips
        in the DAG, hash of the selected parent block, difficulty of the
        selected parent block, selected parent block blue score, selected parent
        block time.
      operationId: RpcController_getBlockDagInfo
      parameters: []
      responses:
        '200':
          description: Block DAG information retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RpcGetBlockDagInfoResponseDto'
      security:
        - x-api-key: []
components:
  schemas:
    RpcGetBlockDagInfoResponseDto:
      type: object
      properties:
        network:
          type: string
          description: Network identifier
          example: mainnet
        blockCount:
          type: string
          description: Number of blocks in the DAG
          example: '1234567'
        headerCount:
          type: string
          description: Number of headers in the DAG
          example: '1234567'
        tipHashes:
          description: Array of tip hashes in the DAG
          example:
            - 0x1234567890abcdef...
          type: array
          items:
            type: string
        difficulty:
          type: number
          description: Current difficulty
          example: 1.234567
        pastMedianTime:
          type: string
          description: Past median time
          example: '1638360000000'
        virtualParentHashes:
          description: Virtual parent hashes
          example:
            - 0x1234567890abcdef...
          type: array
          items:
            type: string
        pruningPointHash:
          type: string
          description: Pruning point hash
          example: 0x1234567890abcdef...
        virtualDaaScore:
          type: string
          description: Virtual DAA score
          example: '12345678'
        sink:
          type: string
          description: Sink hash
          example: 0x1234567890abcdef...
      required:
        - network
        - blockCount
        - headerCount
        - tipHashes
        - difficulty
        - pastMedianTime
        - virtualParentHashes
        - pruningPointHash
        - virtualDaaScore
        - sink
  securitySchemes:
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key required for authentication. Get your API key at
        https://developer.kas.fyi

````