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

# krnx_getWork

> Fetch a kHeavyHash work package



## OpenAPI

````yaml specs/krnx_getWork.json POST /
openapi: 3.1.0
info:
  description: >-
    Generated from consensus/kheavyhash/api.go by tools/rpcdocgen. Do not edit
    by hand.
  title: KRNX JSON-RPC
  version: 1.0.0
servers:
  - url: https://rpc.kronex.network
security: []
paths:
  /:
    post:
      summary: krnx_getWork
      description: >-
        Returns the current mining work as an array of 11
        strings.\n\n```text\n0  kHeavyHash pow-hash (the PRE_POW_HASH of the
        pre-image)\n1  seed hash\n2  boundary condition, 2^256 / difficulty\n3 
        block number\n4  parent block pow-hash\n5  gas limit\n6  gas used\n7 
        transaction count\n8  uncle count\n9  RLP-encoded header with empty
        extra data\n10 header timestamp in seconds, the TIME of the
        pre-image\n```\n\nThe node must be started with `--mine` or it builds no
        pending block and this call errors. Mirrored as `eth_getWork`.
      operationId: krnx_getWork
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
          description: JSON-RPC response
components:
  schemas:
    Request:
      properties:
        id:
          example: 1
          type: integer
        jsonrpc:
          enum:
            - '2.0'
          example: '2.0'
          type: string
        method:
          enum:
            - krnx_getWork
          example: krnx_getWork
          type: string
        params:
          description: This method takes no parameters.
          example: []
          maxItems: 0
          minItems: 0
          type: array
      required:
        - jsonrpc
        - method
        - params
        - id
      type: object
    Response:
      properties:
        error:
          description: Present instead of `result` when the call fails.
          properties:
            code:
              example: -32602
              type: integer
            message:
              type: string
          type: object
        id:
          example: 1
          type: integer
        jsonrpc:
          example: '2.0'
          type: string
        result:
          items:
            type: string
          type: array
      type: object

````