> ## 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_getWorkshareReward

> Reward receipt for one workshare



## OpenAPI

````yaml specs/krnx_getWorkshareReward.json POST /
openapi: 3.1.0
info:
  description: >-
    Generated from internal/krnxapi/krnx_workshare_reward_rpc.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_getWorkshareReward
      description: >-
        Returns the persistent reward receipt for a canonical workshare
        identity, or for an algorithm-scoped PoW hash.


        Pass exactly one selector: either `workshareId`, or the pair `powId` +
        `powHash`.
      operationId: krnx_getWorkshareReward
      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_getWorkshareReward
          example: krnx_getWorkshareReward
          type: string
        params:
          description: 'Positional parameters: 1. `req` (object, required).'
          example:
            - workshareId: >-
                0x7777777777777777777777777777777777777777777777777777777777777777
          maxItems: 1
          minItems: 1
          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:
          $ref: '#/components/schemas/KRNXGetWorkshareRewardResponse'
      type: object
    KRNXGetWorkshareRewardResponse:
      properties:
        baseReward:
          $ref: '#/components/schemas/krnxAmountResult'
        beneficiary:
          example: '0x0000000000000000000000000000000000000000'
          pattern: ^0x[0-9a-fA-F]{40}$
          type: string
        confirmations:
          description: 0x-prefixed hex quantity.
          pattern: ^0x[0-9a-fA-F]+$
          type: string
        feeReward:
          $ref: '#/components/schemas/krnxAmountResult'
        includedBlockHash:
          example: '0x0000000000000000000000000000000000000000000000000000000000000000'
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        includedBlockNumber:
          description: 0x-prefixed hex quantity.
          pattern: ^0x[0-9a-fA-F]+$
          type: string
        lockedAt:
          description: 0x-prefixed hex quantity.
          pattern: ^0x[0-9a-fA-F]+$
          type: string
        parentBlockCandidate:
          type: boolean
        parentBlockHash:
          example: '0x0000000000000000000000000000000000000000000000000000000000000000'
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        parentChain:
          type: string
        parentChainID:
          description: 0x-prefixed hex quantity.
          pattern: ^0x[0-9a-fA-F]+$
          type: string
        parentTarget:
          example: '0x0000000000000000000000000000000000000000000000000000000000000000'
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        powHash:
          example: '0x0000000000000000000000000000000000000000000000000000000000000000'
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        powId:
          description: 0x-prefixed hex quantity.
          pattern: ^0x[0-9a-fA-F]+$
          type: string
        rewardDifficulty:
          type: string
        shareTarget:
          example: '0x0000000000000000000000000000000000000000000000000000000000000000'
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        status:
          type: string
        templateKRNXBlockHash:
          example: '0x0000000000000000000000000000000000000000000000000000000000000000'
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        templateKRNXBlockNumber:
          description: 0x-prefixed hex quantity.
          pattern: ^0x[0-9a-fA-F]+$
          type: string
        totalReward:
          $ref: '#/components/schemas/krnxAmountResult'
        unlockTime:
          description: 0x-prefixed hex quantity.
          pattern: ^0x[0-9a-fA-F]+$
          type: string
        workshareId:
          example: '0x0000000000000000000000000000000000000000000000000000000000000000'
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        workshareIndex:
          description: 0x-prefixed hex quantity.
          pattern: ^0x[0-9a-fA-F]+$
          type: string
      required:
        - confirmations
        - parentBlockCandidate
        - status
        - workshareId
        - workshareIndex
      type: object
    krnxAmountResult:
      properties:
        decimal:
          type: string
        raw:
          type: string
      required:
        - decimal
        - raw
      type: object

````