> ## Documentation Index
> Fetch the complete documentation index at: https://cantonfoundation-content-update-daml-core-concepts-snippets.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# GET /v0/internal/reward-accounting-process/rounds/:round_number/batches/:batch_hash

> SV node internal API (CIP-0104, subject to change).
Returns the contents of a reward batch identified by its hash.
The response is either a list of child batch hashes (for internal nodes)
or a list of minting allowances (for leaf nodes).




## OpenAPI

````yaml /openapi/splice/scan/scan.yaml get /v0/internal/reward-accounting-process/rounds/{round_number}/batches/{batch_hash}
openapi: 3.0.0
info:
  title: Scan API
  version: 0.0.1
servers:
  - url: https://scan.sv-1.global.canton.network.sync.global/api/scan
security: []
tags:
  - name: external
    description: >
      These endpoints are intended for public usage and will remain
      backward-compatible.
  - name: internal
    description: >
      For internal usage only, not guaranteed to be stable or
      backward-compatible.
  - name: deprecated
    description: |
      These endpoints are deprecated and will be removed in a future release.
  - name: scan
    description: |
      The internal and external endpoints.
  - name: pre-alpha
    description: |
      Still under active development, highly unstable. Do not use in production.
paths:
  /v0/internal/reward-accounting-process/rounds/{round_number}/batches/{batch_hash}:
    get:
      tags:
        - internal
        - scan
      summary: >-
        GET
        /v0/internal/reward-accounting-process/rounds/:round_number/batches/:batch_hash
      description: |
        SV node internal API (CIP-0104, subject to change).
        Returns the contents of a reward batch identified by its hash.
        The response is either a list of child batch hashes (for internal nodes)
        or a list of minting allowances (for leaf nodes).
      operationId: getRewardAccountingBatch
      parameters:
        - name: round_number
          in: path
          required: true
          schema:
            type: integer
            format: int64
        - name: batch_hash
          in: path
          required: true
          schema:
            type: string
            description: Hex-encoded batch hash
      responses:
        '200':
          description: ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetRewardAccountingBatchResponse'
        '404':
          $ref: '#/components/responses/404'
components:
  schemas:
    GetRewardAccountingBatchResponse:
      type: object
      oneOf:
        - $ref: '#/components/schemas/RewardAccountingBatchOfBatches'
        - $ref: '#/components/schemas/RewardAccountingBatchOfMintingAllowances'
      discriminator:
        propertyName: batch_type
        mapping:
          BatchOfBatches:
            $ref: '#/components/schemas/RewardAccountingBatchOfBatches'
          BatchOfMintingAllowances:
            $ref: '#/components/schemas/RewardAccountingBatchOfMintingAllowances'
    RewardAccountingBatchOfBatches:
      type: object
      allOf:
        - $ref: '#/components/schemas/BaseRewardAccountingBatch'
        - type: object
          required:
            - child_hashes
          properties:
            child_hashes:
              type: array
              items:
                type: string
              description: Hex-encoded child batch hashes
    RewardAccountingBatchOfMintingAllowances:
      type: object
      allOf:
        - $ref: '#/components/schemas/BaseRewardAccountingBatch'
        - type: object
          required:
            - minting_allowances
          properties:
            minting_allowances:
              type: array
              items:
                $ref: '#/components/schemas/RewardAccountingMintingAllowance'
              description: Party + amount pairs
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
    BaseRewardAccountingBatch:
      type: object
      required:
        - batch_type
      properties:
        batch_type:
          type: string
          description: |
            The type of batch.
            BatchOfBatches: Contains child batch hashes.
            BatchOfMintingAllowances: Contains party + amount pairs.
    RewardAccountingMintingAllowance:
      type: object
      required:
        - provider
        - amount
      properties:
        provider:
          type: string
        amount:
          type: string
  responses:
    '404':
      description: not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'

````