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

# ots_getTransactionError

> Given a transaction hash, returns its raw revert reason.

### Parameters

<ParamField query="chainId" type="string" default="10" 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="ots_getTransactionError" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={["0x9e63085271890a141297039b3b711913699f1ee4db1acb667ad7ce304772036b"]} placeholder="[&#x22;0x9e63085271890a141297039b3b711913699f1ee4db1acb667ad7ce304772036b&#x22;]" required>
  The parameters for the method ots\_getTransactionError: \[txHash].

  Positional parameters for <code>ots\_getTransactionError</code>:

  <ul>
    <li><code>params\[]</code>: 32 Bytes - Hash of the transaction.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="string">
  string containing the hexadecimal-formatted error blob or simply a "0x" if the transaction was successfully executed. It returns "0x" if it failed with no revert reason or out of gas, so make sure to analyze this return value together with the transaction success/fail result. Example: <code>"0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000135472616e73616374696f6e20746f6f206f6c6400000000000000000000000000"</code>.
</ResponseField>

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

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x08c379a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000..."
  }
  ```
</ResponseExample>
