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

# Tokens

### Table Details

| Property            | Value                          |
| ------------------- | ------------------------------ |
| Table Name          | `stellar.raw.tokens`           |
| Table Status        | Production-Ready               |
| Unique Key          | `contract_id`                  |
| Clustering Key(s)   | `to_date("ledger_close_time")` |
| Search Optimization | `contract_id`, `asset_id`      |

### Table Columns

| Column Name                        | Data Type         | Description                                                                     |
| ---------------------------------- | ----------------- | ------------------------------------------------------------------------------- |
| contract\_id                       | VARCHAR(16777216) | Soroban contract address of this token.                                         |
| asset\_id                          | VARCHAR(16777216) | Composite `code:issuer` identifier of the asset for non-native assets.          |
| asset\_code                        | VARCHAR(16777216) | Asset code for a classic asset.                                                 |
| asset\_issuer                      | VARCHAR(16777216) | Issuer G-address for a classic asset.                                           |
| decimals                           | NUMBER(38,0)      | Number of decimal places for this token.                                        |
| token\_type                        | VARCHAR(16777216) | Whether the token is a classic asset or a Soroban contract token.               |
| asset\_toml\_info                  | VARIANT           | Metadata from the asset's SEP-1 stellar.toml file.                              |
| asset\_toml\_url                   | VARCHAR(16777216) | URL of the SEP-1 stellar.toml file for this asset's issuer.                     |
| executable                         | VARCHAR(16777216) | Executable of the Soroban contract instance ledger entry.                       |
| durability                         | VARCHAR(16777216) | Storage durability of the Soroban ledger entry: persistent or temporary.        |
| ledger\_close\_time                | TIMESTAMP\_NTZ(9) | Time when the ledger containing this change closed and was finalized.           |
| ledger\_sequence                   | NUMBER(38,0)      | Sequence number of the ledger containing this change.                           |
| ledger\_hash                       | VARCHAR(16777216) | Hash of the ledger containing this change.                                      |
| transaction\_hash                  | VARCHAR(16777216) | Hash of the transaction that produced this change.                              |
| transaction\_index                 | NUMBER(38,0)      | Position of the transaction within its ledger.                                  |
| ledger\_entry\_change\_index       | NUMBER(38,0)      | Sequential index of this change within the transaction's ledger entry changes.  |
| ledger\_entry\_type                | VARCHAR(16777216) | Numeric type of the affected LedgerEntry.                                       |
| ledger\_entry\_type\_str           | VARCHAR(16777216) | Human-readable name of the LedgerEntry type.                                    |
| ledger\_entry\_change\_type        | VARCHAR(16777216) | Type of change applied to this ledger entry (created, updated, removed, state). |
| ledger\_entry\_change\_reason\_str | VARCHAR(16777216) | Human-readable description of the reason for this ledger entry change.          |
| ledger\_entry\_change\_reason      | VARCHAR(16777216) | Reason code for this ledger entry change.                                       |
| post\_ledger\_entry                | VARIANT           | State of the ledger entry after this change was applied.                        |
| \_extra\_fields                    | VARIANT           | Catch-all of additional source fields not mapped to a dedicated column.         |
| \_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.                   |
