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

> Given an ETH contract address, returns the tx hash and the direct address who created the contract.

### Parameters

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

<ParamField body="params" type="object" default={["0xc0a47dFe034B400B47bDaD5FecDa2621de6c4d95"]} placeholder="[&#x22;0xc0a47dFe034B400B47bDaD5FecDa2621de6c4d95&#x22;]" required>
  The parameters for ots\_getContractCreator: \[address].

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

  <ul>
    <li><code>params\[]</code>: The address.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  object containing the following attributes, or null if the address does not contain a contract. hash - The tx hash of the transaction who created the contract. creator - The address which created the contract. Note that for simple transactions that directly deploy a contract this corresponds to the EOA in the from field of the transaction. For deployer contracts, i.e., the contract is created as a result of a method call, this corresponds to the address of the contract which created it.
</ResponseField>

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

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "hash": "0xe881c43cd88063e84a1d0283f41ee5348239b259c0d17a7e2e4552da3f4b2bc7",
      "creator": "0x6c9fc64a53c1b71fb3f9af64d1ae3a4931a5f4e9"
    }
  }
  ```
</ResponseExample>
