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

# zks_getTransactionDetails

> Returns data about a transaction given by the transaction hash.

### Parameters

<ParamField query="chainId" type="string" default="232" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="zks_getTransactionDetails" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={["0x22de7debaa98758afdaee89f447ff43bab5da3de6acca7528b281cc2f1be2ee9"]} placeholder="[&#x22;0x22de7debaa98758afdaee89f447ff43bab5da3de6acca7528b281cc2f1be2ee9&#x22;]">
  The transaction hash in hexadecimal format.

  Positional parameters for <code>zks\_getTransactionDetails</code>:

  <ul>
    <li><code>params\[]</code>: Type: string.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  Object containing transaction metadata and status details.

  <Expandable title="properties">
    <ResponseField name="ethCommitTxHash" type="string">
      Transaction hash of the commit transaction.
    </ResponseField>

    <ResponseField name="ethExecuteTxHash" type="string">
      Transaction hash of the execution transaction.
    </ResponseField>

    <ResponseField name="ethProveTxHash" type="string">
      Ethereum transaction hash of the proof transaction.
    </ResponseField>

    <ResponseField name="fee" type="string">
      The fee for the transaction.
    </ResponseField>

    <ResponseField name="gasPerPubdata" type="string">
      Gas per public data unit.
    </ResponseField>

    <ResponseField name="initiatorAddress" type="string">
      The address of the transaction initiator.
    </ResponseField>

    <ResponseField name="isL1Originated" type="boolean">
      True if the transaction originated from L1.
    </ResponseField>

    <ResponseField name="receivedAt" type="string">
      Timestamp when the transaction was received.
    </ResponseField>

    <ResponseField name="status" type="string">
      The current status of the transaction.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=232 \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "zks_getTransactionDetails",
      "params": [
        "0x22de7debaa98758afdaee89f447ff43bab5da3de6acca7528b281cc2f1be2ee9"
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "ethCommitTxHash": "0x3da5b6eda357189c9243c41c5a33b1b2ed0169be172705d74681a25217702772",
      "ethExecuteTxHash": "0xdaff5fd7ff91333b161de54534b4bb6a78e5325329959a0863bf0aae2b0fdcc6",
      "ethProveTxHash": "0x2f482d3ea163f5be0c2aca7819d0beb80415be1a310e845a2d726fbc4ac54c80",
      "fee": "0x0",
      "gasPerPubdata": "0x320",
      "initiatorAddress": "0x87869cb87c4fa78ca278df358e890ff73b42a39e",
      "isL1Originated": true,
      "receivedAt": "2023-03-03T23:52:24.169Z",
      "__truncated": true
    }
  }
  ```
</ResponseExample>
