curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--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"
}
}
Given an ETH contract address, returns the tx hash and the direct address who created the contract.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--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"
}
}
ots_getContractCreator:params[]: The address.curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--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"
}
}
Was this page helpful?