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 scroll.raw.contract_events 
where 1=1 
and status = 1 and error is null 
and trace_type in ('create', 'create2')
limit 100

Table Columns

Column NameDescriptionExample

address

Contract address.

0xc9b747bdae201272a418ef805028ef3a06ae9a15

block_hash

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

0x049151ec6fa457327959ab71bb945c3b2f70260a07d48052439ffc8cc4dd3644

block_number

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

574475

block_timestamp

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

2023-11-06 00:17:43+00:00

bytecode_creation

The bytecode data of this contract (Traces input).

0x608060405260008054.....

bytecode_runtime

The bytecode data of this contract (Traces output).

0x608060405234801560.....

deployer

Address of the contract deployer.

0xea3a6d4321364262002ca2e619a9cf955dbda5cd

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_0x7966e7916d98d293eea1e8c36918e33334e5e0e2f139e55e8b483f824c560e2b_

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.

0x7966e7916d98d293eea1e8c36918e33334e5e0e2f139e55e8b483f824c560e2b

transaction_index

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

4

_updated_at

Timestamp of the entry creation.

2023-12-19 13:52:24.664000+00:00

_created_at

Timestamp of the entry update.

2023-12-19 13:52:24.664000+00:00

Last updated