> ## Documentation Index
> Fetch the complete documentation index at: https://docs.allium.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Contracts

The contracts table contains all the deployed contracts with bytecode data identified from trace `create` and `create2` opcodes.

A "smart contract" is simply a program that runs on the EVM blockchain. It's a collection of code (its functions) and data (its state) that resides at a specific address on the blockchain.

Deploying a smart contract on EVM chains typically involves sending a transaction containing the compiled code of the smart contract without specifying any recipient.

### Table Columns

Unique Key: `trace_id`

| Column Name | Data Type | Description |
| - | - | - |
| block\_number | NUMBER(38,0) | The number of the block that this contract was created in. |
| block\_timestamp | TIMESTAMP\_NTZ(9) | The timestamp of the block that this contract was created in. |
| block\_timestamp\_ms | VARCHAR | The block timestamp in milliseconds since Unix epoch (string-encoded), providing higher precision than `block_timestamp`. |
| block\_hash | VARCHAR | The hash of the block that this contract was created in. |
| address | VARCHAR | Contract address. |
| bytecode | VARCHAR | The bytecode data of this contract. |
| found\_signature\_hashes | ARRAY | Signature hashes identified in the deployed contract. In an array format. |
| transaction\_hash | VARCHAR | The transaction hash of the block that this contract was created in. |
| trace\_id | VARCHAR | Unique identifier for this contract creation trace. Generated by combining the `trace_type`, `transaction_hash`, and `trace_address` in trace data. |
| deployer | VARCHAR | Address of the contract deployer. |
| before\_evm\_transfers | VARIANT | EVM transfers state before the trace execution. (Only applicable for Arbitrum Orbit Chains) |
| after\_evm\_transfers | VARIANT | EVM transfers state after the trace execution. (Only applicable for Arbitrum Orbit Chains) |
| \_created\_at | TIMESTAMP\_NTZ(9) | Timestamp of the entry creation. |
| \_updated\_at | TIMESTAMP\_NTZ(9) | Timestamp of the entry update. |
