ots
ots_getContractCreator
Returns the transaction hash and address that created a given contract. Returns null for externally-owned accounts (EOAs).
Returns the transaction hash and address that created a given contract. Returns null for externally-owned accounts (EOAs).
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | Contract address to look up. |
Returns
| Field | Type | Description |
|---|---|---|
hash | string | Transaction hash of the contract creation transaction. |
creator | string | Address that deployed the contract. |
Returns null if the address is not a contract.
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "ots_getContractCreator",
"params": ["0x2b591e99afE9f32eAA6214f7B7629768c40Eeb39"],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"hash": "0x...",
"creator": "0x..."
}
}
TRY IT
Notes
- This method only works for contracts, not EOAs. Returns
nullif the address has no code. - Useful for auditing and verifying contract provenance.
- The
creatoraddress is thefromaddress of the deployment transaction, which may be a factory contract rather than an EOA. - The
hashcan be used witheth_getTransactionReceiptto get the full deployment details.
ots_getBlockTransactions
Returns paginated transactions for a block along with their receipts. Designed for block explorer UIs that display transactions with status and gas information.
ots_searchTransactionsBefore
Returns transactions sent or received by an address, searching backwards from a given transaction index.
