Skip to main content

Parameters

chainId
string
default:"998"
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
default:["0xc0a47dFe034B400B47bDaD5FecDa2621de6c4d95"]
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.