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

> Get detailed Dogecoin block information by block height or hash including transactions, size, and mining details.

# Block Info



## OpenAPI

````yaml dogecoin/node-rpc-api/openapi.json get /block/{height_or_hash}
openapi: 3.1.0
info:
  description: Node RPC API for Dogecoin.
  title: Dogecoin - Node RPC API
  version: '0.1'
servers:
  - description: Dogecoin Mainnet
    url: https://xdg-mainnet.gomaestro-api.org/v0/rpc
  - description: Dogecoin Testnet
    url: https://xdg-testnet.gomaestro-api.org/v0/rpc
security:
  - api-key: []
externalDocs:
  description: ''
  url: ''
paths:
  /block/{height_or_hash}:
    get:
      tags:
        - Blocks
      summary: Block Info
      description: Block info by height or hash
      operationId: rpc_block_info
      parameters:
        - description: Block height or hash
          in: path
          name: height_or_hash
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api_dogecoin.DogecoinBlockResponseBody'
          description: OK
        '400':
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/api_dogecoin.NodeRPCError'
                  - $ref: '#/components/schemas/api_dogecoin.APIError'
          description: Invalid height.
        '500':
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/api_dogecoin.APIError'
                  - $ref: '#/components/schemas/api_dogecoin.APIError'
          description: Error processing block response.
components:
  schemas:
    api_dogecoin.DogecoinBlockResponseBody:
      properties:
        data:
          $ref: '#/components/schemas/api_dogecoin.DogecoinBlock'
        last_updated:
          $ref: '#/components/schemas/api_dogecoin.LastUpdatedBlock'
      type: object
    api_dogecoin.NodeRPCError:
      properties:
        code:
          description: Error code returned from the API request
          example: 0
          type: integer
        node rpc error:
          description: Error returned from the API request
          example: node rpc error
          type: string
      type: object
    api_dogecoin.APIError:
      properties:
        error:
          description: Error returned from the API request
          example: Bad Request
          type: string
      type: object
    api_dogecoin.DogecoinBlock:
      properties:
        auxpow:
          properties:
            chainindex:
              type: integer
            chainmerklebranch:
              items:
                type: string
              type: array
              uniqueItems: false
            index:
              type: integer
            merklebranch:
              items:
                type: string
              type: array
              uniqueItems: false
            parentblock:
              type: string
            tx:
              properties:
                blockhash:
                  type: string
                hash:
                  type: string
                hex:
                  type: string
                locktime:
                  type: integer
                size:
                  type: integer
                txid:
                  type: string
                version:
                  type: integer
                vin:
                  items:
                    properties:
                      coinbase:
                        type: string
                      sequence:
                        type: integer
                    type: object
                  type: array
                  uniqueItems: false
                vout:
                  items:
                    properties:
                      'n':
                        type: integer
                      scriptPubKey:
                        properties:
                          addresses:
                            items:
                              type: string
                            type: array
                            uniqueItems: false
                          asm:
                            type: string
                          hex:
                            type: string
                          reqSigs:
                            type: integer
                          type:
                            type: string
                        type: object
                      value:
                        type: number
                    type: object
                  type: array
                  uniqueItems: false
                vsize:
                  type: integer
              type: object
          type: object
        bits:
          type: string
        chainwork:
          type: string
        confirmations:
          type: integer
        difficulty:
          type: number
        hash:
          type: string
        height:
          type: integer
        mediantime:
          type: integer
        merkleroot:
          type: string
        nextblockhash:
          type: string
        nonce:
          type: integer
        previousblockhash:
          type: string
        size:
          type: integer
        strippedsize:
          type: integer
        time:
          type: integer
        tx:
          items:
            type: string
          type: array
          uniqueItems: false
        version:
          type: integer
        versionHex:
          type: string
        weight:
          type: integer
      type: object
    api_dogecoin.LastUpdatedBlock:
      properties:
        block_hash:
          type: string
        block_height:
          type: integer
      type: object
  securitySchemes:
    api-key:
      description: Project API Key
      in: header
      name: api-key
      type: apiKey

````