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

0x993e9992b50bc0917c3a1d7e0831cbe6f0f8d8b2

block_hash

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

0x818416cc14061b16c08ed62eed994cb89ea597dce851640910819e34a12df6dc

block_number

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

13196382

block_timestamp

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

2021-12-04 20:07:20+00:00

bytecode_creation

The bytecode data of this contract (Traces input).

0x608060405234801561.....

bytecode_runtime

The bytecode data of this contract (Traces output).

0x608060405234801560.....

deployer

Address of the contract deployer.

0x114567add088dc55ab5a6cac67a8e02dd9635519

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_0x89d6a96becc05c7071e133eb8975c4b1a2244160dc61d485437e143e9649423a_0

subtraces

Number of children traces.

0

trace_address

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

0

transaction_hash

Unique identifier of the transaction that contains this trace.

0x89d6a96becc05c7071e133eb8975c4b1a2244160dc61d485437e143e9649423a

transaction_index

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

69

_updated_at

Timestamp of the entry creation.

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

_created_at

Timestamp of the entry update.

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

Last updated