Skip to main content
POST
https://api.uniblock.dev
/
uni
/
v1
/
json-rpc
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"
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "hash": "0xe881c43cd88063e84a1d0283f41ee5348239b259c0d17a7e2e4552da3f4b2bc7",
    "creator": "0x6c9fc64a53c1b71fb3f9af64d1ae3a4931a5f4e9"
  }
}

Parameters

chainId
string
default:"1"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"ots_getContractCreator"
required
JSON-RPC method name.
params
object
required
The parameters for ots_getContractCreator: [address].Positional parameters for ots_getContractCreator:
  • params[]: The address.

Returns

result
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.
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"
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "hash": "0xe881c43cd88063e84a1d0283f41ee5348239b259c0d17a7e2e4552da3f4b2bc7",
    "creator": "0x6c9fc64a53c1b71fb3f9af64d1ae3a4931a5f4e9"
  }
}