Contract Events

The contract events table contains all contract deployment (trace type = create, create2) and destruction (trace type = suicide) events from internal transactions (traces).

This table contains both failed (error messaged and/or status = 1) and successful (status = 1 and no error message) events are included in this dataset.

Example

Finding all successful contract deployment.

select * from ethereum.raw.contract_events 
where 1=1 
and status = 1 and error is null 
and trace_type in ('create', 'create2')
limit 100

Table Columns

Column Name
Description
Example

address

Contract address.

0x78cc8dc1c9387f6c25e9af00329387508a6b9daf

block_hash

The hash of the block that this contract was created in.

0xf3f08cd530ec9daf6dbd526bbedf42574fcb2ab599615c8807b0c1aaaf2e1c89

block_number

The number of the block that this contract was created in.

6720499

block_timestamp

The timestamp of the block that this contract was created in.

2018-11-17 09:31:00+00:00

bytecode_creation

The bytecode data of this contract (Traces input).

0x606060405234156100.....

bytecode_runtime

The bytecode data of this contract (Traces output).

0x606060405236156100.....

deployer

Address of the contract deployer.

0xb42b20ddbeabdc2a288be7ff847ff94fb48d2579

trace_type

Timestamp of the entry creation.

create

status

Timestamp of the entry update.

1

error

Human readable developer error message. Examples: "Out of gas", "Reverted", "Bad instruction", "Bad jump destination".

trace_id

Unique identifier for this trace. Generated by combining the trace_type, transaction_hash and trace_address.

create_0x872aebae09bd3b06660e17b0bef7241692f1b6ad11218705a8f3ab11f619811d_

subtraces

Number of children traces.

0

trace_address

The address of the trace within the call graph. More detail to come soon.

transaction_hash

Unique identifier of the transaction that contains this trace.

0x872aebae09bd3b06660e17b0bef7241692f1b6ad11218705a8f3ab11f619811d

transaction_index

The position of this transaction in the block that it belongs to. The first transaction has index 0.

8

_updated_at

Timestamp of the entry creation.

2023-12-19 14:02:17.781000+00:00

_created_at

Timestamp of the entry update.

2023-12-19 14:02:17.781000+00:00

Last updated