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

# ink

> Tables in tt-contracts.ink

## 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                                                  |
  | ------ | ------------------------------------------ | -------- | ------- | --------- | ---------- | ------------- | ------------------------ | ------------------------------------------------------------------ |
  |        | 0x00000000001594c61dd8a6804da9ab58ed2483ce |          | false   |           | 1          | 2287240       | 2025-01-02T02:40:51.000Z | 0x4a4bf54f8cfb4565c839217d4a5cc3f80be028de779cf579da96b72f63942281 |
  |        | 0x00000000001594c61dd8a6804da9ab58ed2483ce |          | false   |           | 1          | 2346807       | 2025-01-02T19:13:38.000Z | 0x8487bcb93b4eadb8bd00720740168aeb48e8ad9fb4f3280fee0a7f1b4e61dba0 |
  |        | 0x00000000001594c61dd8a6804da9ab58ed2483ce |          | false   |           | 1          | 2329069       | 2025-01-02T14:18:00.000Z | 0xb3f504dad1a3b315d369bc690a4a9e52577c5120bbb467c9df9682b3951dfca4 |
</Accordion>

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

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

***
