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

# Credit Debit

### Table Details

| Property     | Value                           |
| ------------ | ------------------------------- |
| Table Name   | `imx_zkevm.assets.credit_debit` |
| Table Status | Production-Ready                |
| Unique Key   | `transaction_hash`, `unique_id` |

### Table Columns

| Column Name                     | Data Type         | Description                                                                                                                                                                                                                                              |
| ------------------------------- | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| address                         | VARCHAR(42)       | Address of the account that was credited or debited `amount` of token.                                                                                                                                                                                   |
| counterparty\_address           | VARCHAR(42)       | The address of the counterparty of this credit or debit transfer.                                                                                                                                                                                        |
| token\_address                  | VARCHAR(42)       | Token address of the asset transferred. Note: the native coin does not have a contract address, but by convention it is labelled as `0x0000000000000000000000000000000000000000`.                                                                        |
| token\_name                     | VARCHAR(16777216) | Name of the asset transferred.                                                                                                                                                                                                                           |
| token\_symbol                   | VARCHAR(16777216) | Token symbol of the asset transferred.                                                                                                                                                                                                                   |
| token\_id                       | VARCHAR(16777216) | Identifier for non-fungible tokens (ERC-721) or semi-fungible tokens (ERC-1155). Each unique token\_id within a collection represents a distinct asset.                                                                                                  |
| raw\_amount                     | FLOAT             | Amount of tokens moved (unnormalized). For ERC721 and ERC1155 tokens, no decimals division is involved.                                                                                                                                                  |
| raw\_amount\_str                | VARCHAR(16777216) | Raw token amount stored as a string to preserve full precision. Equivalent to `raw_amount` but avoids floating-point truncation for very large values.                                                                                                   |
| amount                          | FLOAT             | Amount of token moved, normalized by the token's decimal precision.                                                                                                                                                                                      |
| amount\_str                     | VARCHAR(16777216) | Normalized token amount stored as a string to preserve full precision. Equivalent to `amount` but avoids floating-point truncation for very large or very small values.                                                                                  |
| usd\_amount                     | FLOAT             | The amount of tokens moved, in USD.                                                                                                                                                                                                                      |
| usd\_exchange\_rate             | FLOAT             | USD price of one normalized unit of the token at the time of this transfer, used to derive `usd_amount`.                                                                                                                                                 |
| transaction\_from\_address      | VARCHAR(42)       | Address of the externally-owned account (EOA) that signed and submitted the transaction. This is the wallet that paid gas, which may differ from the `from_address` of an individual token transfer if a contract is routing tokens on behalf of a user. |
| transaction\_to\_address        | VARCHAR(42)       | Address the transaction was sent to (the top-level `to` field of the transaction). May be a router, aggregator, or bridge contract rather than the direct recipient of assets.                                                                           |
| transaction\_hash               | VARCHAR(66)       | Transaction hash that this transfer belongs to.                                                                                                                                                                                                          |
| transaction\_index              | NUMBER(38,0)      | Zero-based position of the transaction within its block. The first transaction in a block has index 0.                                                                                                                                                   |
| block\_timestamp                | TIMESTAMP\_NTZ(9) | The timestamp of the block that the corresponding transaction of this transfer belongs to. This is also the timestamp when this transfer occurred.                                                                                                       |
| block\_number                   | NUMBER(38,0)      | The block number that the corresponding transaction of this transfer belongs to.                                                                                                                                                                         |
| block\_hash                     | VARCHAR(66)       | The block hash that the corresponding transaction of this transfer belongs to.                                                                                                                                                                           |
| token\_type                     | VARCHAR(16777216) | The type of asset transferred. Currently supports the native coin, ERC20, ERC721 and ERC1155 tokens.                                                                                                                                                     |
| unique\_id                      | VARCHAR(16777216) | Unique id generated for each transfer. Includes transaction hash, log index and credit/debit transaction type.                                                                                                                                           |
| \_tokens\_updated\_at           | TIMESTAMP\_NTZ(9) | Timestamp of when the token metadata was last updated.                                                                                                                                                                                                   |
| \_created\_at                   | TIMESTAMP\_NTZ(9) | Timestamp of when the entry was created in the database.                                                                                                                                                                                                 |
| \_updated\_at                   | TIMESTAMP\_NTZ(9) | Timestamp of when the entry was last updated in the database.                                                                                                                                                                                            |
| \_changed\_since\_full\_refresh | BOOLEAN           | Indicates if the record has changed since the last full data refresh.                                                                                                                                                                                    |

### Related Docs

* [EVM Assets Credit Debit](/historical-data/supported-blockchains/evm/core-schemas/assets/credit-debit)
