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

# Transaction

> Fetches the details of a transaction in a specified ICRC-1 ledger block.



## OpenAPI

````yaml nodeapi/openapi/icrc-openapiv3-vc3.json POST /block/transaction
openapi: 3.0.3
info:
  title: ICRC-1 Rosetta API
  description: >-
    OpenAPI v3 specification for ICRC-1 Rosetta endpoints on the Internet
    Computer.
  version: 1.0.0
servers:
  - url: https://icrc-mainnet.icp.validationcloud.io/v1/<YOUR_API_KEY_HERE>
security: []
paths:
  /block/transaction:
    post:
      tags:
        - Block
      summary: Get a transaction within a block
      description: Fetches the details of a transaction in a specified ICRC-1 ledger block.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BlockTransactionRequest'
      responses:
        '200':
          description: Block transaction response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BlockTransactionResponse'
        '404':
          description: Transaction not found
        '500':
          description: Internal server error
components:
  schemas:
    BlockTransactionRequest:
      type: object
      properties:
        network_identifier:
          $ref: '#/components/schemas/NetworkIdentifier'
        block_identifier:
          $ref: '#/components/schemas/BlockIdentifier'
        transaction_identifier:
          $ref: '#/components/schemas/TransactionIdentifier'
    BlockTransactionResponse:
      type: object
      properties:
        transaction:
          $ref: '#/components/schemas/Transaction'
    NetworkIdentifier:
      type: object
      required:
        - blockchain
        - network
      properties:
        blockchain:
          type: string
          example: Internet Computer
        network:
          type: string
          example: mxzaz-hqaaa-aaaar-qaada-cai
        sub_network_identifier:
          $ref: '#/components/schemas/SubNetworkIdentifier'
    BlockIdentifier:
      type: object
      required:
        - index"
        - '"hash'
      properties:
        index:
          type: integer
          format: int64
        hash:
          type: string
    TransactionIdentifier:
      type: object
      properties:
        hash:
          type: string
    Transaction:
      type: object
      properties:
        transaction_identifier:
          $ref: '#/components/schemas/TransactionIdentifier'
        operations:
          type: array
          items:
            $ref: '#/components/schemas/Operation'
        metadata:
          type: object
          additionalProperties: true
    SubNetworkIdentifier:
      type: object
      required:
        - network
      properties:
        network:
          type: string
        metadata:
          type: object
          additionalProperties: true
    Operation:
      type: object
      properties:
        operation_identifier:
          $ref: '#/components/schemas/OperationIdentifier'
        related_operations:
          type: array
          items:
            $ref: '#/components/schemas/OperationIdentifier'
        type:
          type: string
        status:
          type: string
        account:
          $ref: '#/components/schemas/AccountIdentifier'
        amount:
          $ref: '#/components/schemas/Amount'
        metadata:
          type: object
          additionalProperties: true
    OperationIdentifier:
      type: object
      properties:
        index:
          type: integer
          format: int64
        network_index:
          type: integer
          format: int64
    AccountIdentifier:
      type: object
      required:
        - address
      properties:
        address:
          type: string
          description: For ICRC-1, this may be a principal or derived hex string.
        sub_account:
          $ref: '#/components/schemas/SubAccountIdentifier'
        metadata:
          type: object
          additionalProperties: true
    Amount:
      type: object
      properties:
        value:
          type: string
        currency:
          $ref: '#/components/schemas/Currency'
        metadata:
          type: object
          additionalProperties: true
    SubAccountIdentifier:
      type: object
      required:
        - address
      properties:
        address:
          type: string
          description: Typically a 32-byte hex-encoded subaccount in ICRC-1.
        metadata:
          type: object
          additionalProperties: true
    Currency:
      type: object
      properties:
        symbol:
          type: string
        decimals:
          type: integer
          format: int32
        metadata:
          type: object
          additionalProperties: true

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.