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 polygon.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.

block_hash

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

0x5050e24f7220598359a356d5ea16ca373dffbb17dd7ff0d133bde97cd1697c3a

block_number

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

19611618

block_timestamp

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

2021-09-28 13:06:41+00:00

bytecode_creation

The bytecode data of this contract (Traces input).

0x608060405234801562.....

bytecode_runtime

The bytecode data of this contract (Traces output).

deployer

Address of the contract deployer.

0x6217a7b5b64416785bede76e1d04beeafbe28ec7

trace_type

Timestamp of the entry creation.

create

status

Timestamp of the entry update.

0

error

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

execution reverted

trace_id

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

create_19611618_15_0_2

subtraces

Number of children traces.

4

trace_address

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

0,2

transaction_hash

Unique identifier of the transaction that contains this trace.

0x18b3e2724e66d4481798be88061bf7cfcfcc0ca2ee5f7c8f3a2a1f494af66d42

transaction_index

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

15

_updated_at

Timestamp of the entry creation.

2023-12-19 13:54:50.491000+00:00

_created_at

Timestamp of the entry update.

2023-12-19 13:54:50.491000+00:00

Last updated