avalanche.dexalot Table: fact_traces Type: Base Table
What
This table contains detailed execution traces of all internal transactions within the EVM. While fact_transactions shows external calls, this table reveals the complete execution flow including contract-to-contract calls, value transfers, and computation paths.Key Use Cases
- Analyzing internal contract-to-contract calls and value transfers
- Debugging failed transactions and understanding revert reasons
- Tracking contract deployments (CREATE/CREATE2 operations)
- Understanding DeFi protocol interactions and MEV analysis
- Monitoring delegatecall patterns and proxy contract usage
Important Relationships
- Join with fact_transactions: Use
tx_hashfor transaction context - Self-join for trace tree: Use
tx_hashandtrace_addressarray relationships - Join with fact_event_logs: Match execution flow with events
- Join with dim_contracts: Get metadata for interacting contracts
Commonly-used Fields
trace_index: Sequential execution order within transactiontrace_address: Array showing position in execution treetype: Operation type (CALL, DELEGATECALL, CREATE, etc.)from_address: Address initiating this internal callto_address: Destination address (NULL for contract creation)value: Native token amount transferredtrace_succeeded: Whether execution completed successfully
Sample queries
Columns
| Column Name | Data Type | Description |
|---|---|---|
| BLOCK_NUMBER | NUMBER | Sequential counter representing the position of a block in the blockchain since genesis (block 0). |
- Immutable once finalized
- Primary ordering mechanism for blockchain data
- Increments by 1 for each new block
- Used as a proxy for time in many analyses
- Set by block producer
- Can have minor variations (±15 seconds)
- Always increasing (newer blocks = later timestamps)
- Primary key for transaction lookups
- Join key for traces, logs, and token transfers
- Immutable once confirmed
0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060 | | TX_POSITION |
NUMBER | Zero-indexed position of transaction within its block.
Insights:
- Position 0: First transaction in block
- MEV bots often target early positions
- Bundle transactions appear consecutively
- Useful for analyzing transaction ordering | | TRACE_INDEX | NUMBER | Sequential index of trace within the transaction’s execution.
- 0 for most contract interactions
-
0 for native token transfers or payable functions
- Already converted from Wei (divided by 1e18)
- Use value_precise for exact amounts
- 0xa9059cbb: transfer(address,uint256)
- 0x095ea7b3: approve(address,uint256)
- 0x23b872dd: transferFrom(address,address,uint256)
- TRUE: Transaction executed successfully
- FALSE: Transaction failed/reverted | | FACT_TRACES_ID | TEXT | Primary key - unique identifier for each row ensuring data integrity.
- Deduplication in incremental loads
- Join operations for data quality checks
- Troubleshooting specific records
- Data freshness monitoring
- Incremental processing markers
- Debugging data pipeline issues
- SLA tracking