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

# xdc

> Tables in tt-contracts.xdc

## Tables

### ERC20\_Transfer\_event

ERC-20 token transfer events decoded from transaction logs, containing sender address, recipient address, and token amount. Primary source for tracking fungible token flows and wallet holdings across EVM-compatible blockchains.

<Accordion title="Columns">
  | Column             | Type        | Description                                                                                                                                          |
  | ------------------ | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `block_timestamp`  | `TIMESTAMP` | Timestamp when the block was produced. UTC timezone, millisecond precision.                                                                          |
  | `block_number`     | `INT64`     | Sequential identifier for the block in which the event or transaction was recorded. Integer value indicating the block's position in the blockchain. |
  | `transaction_hash` | `STRING`    | Unique identifier for the transaction. 66-character hex string including 0x prefix.                                                                  |
  | `log_index`        | `INT64`     | Position of the event within the block's transaction logs. Zero-indexed integer representing the sequential order of log emission.                   |
  | `address`          | `STRING`    | Contract address that emitted the event. Hex-encoded, 0x-prefixed, 42-character string.                                                              |
  | `removed`          | `BOOL`      | Boolean flag indicating whether the event log was removed from the blockchain due to a chain reorganization.                                         |
  | `in_from`          | `STRING`    | Address originating the transfer or operation. Hex-encoded, 0x-prefixed, 42-character string.                                                        |
  | `in_to`            | `STRING`    | Destination address receiving tokens or assets in the operation. Hex-encoded, 0x-prefixed, 42-character string.                                      |
  | `in_value`         | `STRING`    | Amount of tokens transferred, minted, or burned in the operation. Numeric string representation preserving precision for large integer values.       |
</Accordion>

<Accordion title="Sample Data">
  | in\_to                                     | address                                    | in\_from                                   | removed | in\_value            | log\_index | block\_number | block\_timestamp         | transaction\_hash                                                  |
  | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------- | -------------------- | ---------- | ------------- | ------------------------ | ------------------------------------------------------------------ |
  | 0xf87f7dd4e47dd5bcac902c381ea0d2730db5c6ad | 0x0e11710aad67e7427cfbc12c353284c2e335f62c | 0xe31b3e9e70e778aef25b3abe899ae6e7608907d3 | false   | 72000000000000000000 | 1          | 52321009      | 2022-10-31T02:31:20.000Z | 0x0d00686e571bb50226d3133b0b00ec3eb5fb320f706756372f0cc901aecda0c4 |
  | 0xf87f7dd4e47dd5bcac902c381ea0d2730db5c6ad | 0x0e11710aad67e7427cfbc12c353284c2e335f62c | 0xe31b3e9e70e778aef25b3abe899ae6e7608907d3 | false   | 5000000000000000000  | 1          | 52321028      | 2022-10-31T02:31:58.000Z | 0x197bda75ac28543a6fb39d87292457a90fe2303d6910ae086d09b1e80ba4d7bc |
  | 0x327dda3fe38b1fb6cf2605ab5630ed6937d03384 | 0x0e11710aad67e7427cfbc12c353284c2e335f62c | 0x450cbc1bbf60100ed415f592066cd932afb0297b | false   | 500000000000000000   | 3          | 52322229      | 2022-10-31T03:12:26.000Z | 0x915cbf0ad801eda901dfb31718e55cab178cb95eaa93cb3c3efa5d448359b1d0 |
</Accordion>

<Accordion title="Example Query">
  **Query with partition filter**

  ```sql theme={null}
  SELECT *
  FROM `tt-contracts.xdc.ERC20_Transfer_event`
  WHERE block_timestamp >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)
  LIMIT 100
  ```
</Accordion>

***
