> ## 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   | `bitcoin_cash.assets.credit_debit` |
| Table Status | Production-Ready                   |

### Table Columns

| Column Name         | Data Type         | Description                                                                                                               |
| ------------------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------- |
| address             | VARCHAR(130)      | Address of the account.                                                                                                   |
| amount\_raw\_str    | VARCHAR(16777216) | String of the change in value to the address (unnormalized).                                                              |
| amount\_raw         | NUMBER(38,8)      | Change in value to the address (unnormalized).                                                                            |
| amount\_str         | VARCHAR(16777216) | String of the change in value, normalized by the decimal points defined by the BCH protocol in sats. One sat = 1e-8 BCH.  |
| amount              | FLOAT             | Change in value to the address, normalized by the decimal points defined by the BCH protocol in sats. One sat = 1e-8 BCH. |
| usd\_amount         | FLOAT             | The change in value to the address, in \$USD.                                                                             |
| usd\_exchange\_rate | FLOAT             | The exchange rate used to calculate the usd\_amount.                                                                      |
| block\_timestamp    | TIMESTAMP\_NTZ(9) | The timestamp of the block that resulted in the change in balance.                                                        |
| block\_number       | NUMBER(38,0)      | The number of the block that resulted in the change in balance.                                                           |
| block\_hash         | VARCHAR(66)       | The hash of the block that resulted in the change in balance.                                                             |
| transaction\_index  | NUMBER(38,0)      | Index of the transaction that resulted in the change in balance.                                                          |
| transaction\_hash   | VARCHAR(66)       | Hash of the transaction that resulted in the change in balance.                                                           |
| input\_index        | NUMBER(38,0)      | Index of the input that resulted in the change in balance (debit).                                                        |
| output\_index       | NUMBER(38,0)      | Index of the output that resulted in the change in balance (credit).                                                      |
| unique\_index\_id   | VARCHAR(16777216) | Unique ID of the credit debit entry.                                                                                      |
| \_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.                                                             |
