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

# ots_getContractCreator | Hyperliquid EVM

> The ots_getContractCreator JSON-RPC method retrieves the transaction hash and creator address for a deployed contract on the Hyperliquid EVM blockchain.

<Info>
  This method is available on Chainstack. Not all Hyperliquid methods are available on Chainstack, as the open-source node implementation does not support them yet — see [Hyperliquid methods](/docs/hyperliquid-methods) for the full availability breakdown.
</Info>

The `ots_getContractCreator` JSON-RPC method retrieves the transaction hash and creator address for a deployed contract on the Hyperliquid EVM blockchain. This Otterscan-specific method helps identify who deployed a smart contract and in which transaction.

<Check>
  **Get your own node endpoint today**

  [Start for free](https://console.chainstack.com/) and get your app to production levels immediately. No credit card required.

  You can sign up with your GitHub, X, Google, or Microsoft account.
</Check>

## Parameters

1. **contract address** (string, required): The address of the deployed contract

## Response

The method returns an object containing the creator address and deployment transaction hash, or null if the address is not a contract or information is unavailable.

### Response structure

* `hash` — the transaction hash where the contract was created
* `creator` — the address that deployed the contract

## Usage example

```shell Shell theme={"system"}
curl -X POST https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/evm \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "ots_getContractCreator",
    "params": ["0x5555555555555555555555555555555555555555"],
    "id": 1
  }'
```

### Example response (contract found)

```json theme={"system"}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "hash": "0xf94f3d2ed5b59aefb6a0e566af8e86552014d84f6ed2f38a1366dedffe723381",
    "creator": "0x1234567890abcdef1234567890abcdef12345678"
  }
}
```

### Example response (not a contract)

```json theme={"system"}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": null
}
```

## Contract creation methods

This method detects contracts created through:

* Direct deployment transactions
* CREATE opcode from other contracts
* CREATE2 opcode for deterministic addresses

## Use cases

The `ots_getContractCreator` method is essential for:

* **Contract verification**: Verify the authenticity of contract deployments
* **Security auditing**: Identify who deployed suspicious contracts
* **Attribution tracking**: Link contracts to their deployers
* **Factory pattern analysis**: Track contracts created by factory contracts
* **Deployment history**: Research when and by whom contracts were deployed
* **Trust verification**: Verify contracts were deployed by expected addresses
* **Forensic investigation**: Trace the origin of malicious contracts
* **Documentation**: Record deployment information for contract registries
* **Multi-sig verification**: Confirm contracts deployed by authorized accounts
* **Development debugging**: Track contract deployments during testing

This method is particularly valuable for security analysis and verifying the provenance of smart contracts in DeFi protocols.


## OpenAPI

````yaml /openapi/hyperliquid_node_api/evm_ots_get_contract_creator.json post /evm
openapi: 3.0.0
info:
  title: Hyperliquid EVM API - ots_getContractCreator
  version: 1.0.0
servers:
  - url: >-
      https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274
security: []
paths:
  /evm:
    post:
      summary: ots_getContractCreator
      description: >-
        Get the creator address and transaction hash for a contract on
        Hyperliquid EVM. Identifies who deployed a smart contract.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - params
                - id
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  default: '2.0'
                  description: JSON-RPC version
                method:
                  type: string
                  enum:
                    - ots_getContractCreator
                  default: ots_getContractCreator
                  description: The RPC method name
                params:
                  type: array
                  description: 'Parameters: [contract address]'
                  default:
                    - '0x5555555555555555555555555555555555555555'
                id:
                  type: integer
                  default: 1
                  description: Request identifier
            example:
              jsonrpc: '2.0'
              method: ots_getContractCreator
              params:
                - '0x5555555555555555555555555555555555555555'
              id: 1
      responses:
        '200':
          description: Successful response with contract creator information
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    description: JSON-RPC version
                  id:
                    type: integer
                    description: Request identifier
                  result:
                    type: object
                    description: Creator information or null if not a contract
              example:
                jsonrpc: '2.0'
                id: 1
                result:
                  creator: '0x6666666666666666666666666666666666666666'
                  hash: >-
                    0xf94f3d2ed5b59aefb6a0e566af8e86552014d84f6ed2f38a1366dedffe723381

````