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

# Flashloans

Flashloan events — uncollateralized loans that are borrowed and repaid within a single transaction. Consolidated across lending protocols (e.g. Aave) into a single schema.

### Table Columns

| Column Name                | Data Type         | Description                                                                                                                                                                                                                                              |
| -------------------------- | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| project                    | VARCHAR(16777216) | Business name of the protocol being used (e.g. `uniswap`, `aave`, `lido`, `paraswap`). Consistent across verticals — every table with a `project` column uses this field to identify the top-level protocol brand.                                       |
| protocol                   | VARCHAR(16777216) | Specific version or variant of the protocol (e.g. `uniswap_v3`, `aave_v2`, `stargate_v2`). Qualifies the `project` field with version information.                                                                                                       |
| lending\_event             | VARCHAR(16777216) | Category of lending event. One of: `deposits`, `withdrawals`, `borrows`, `repayments`, `liquidations`.                                                                                                                                                   |
| event\_name                | VARCHAR(16777216) | Name of the smart contract event that triggered this bridge record (e.g. `Deposit`, `Send`, `TransferInitiated`).                                                                                                                                        |
| market\_address            | VARCHAR(16777216) | Address of the lending market contract. For Aave this is the Pool/LendingPool address; for Compound this is the cToken contract; for Morpho this is the specific market address.                                                                         |
| initiator\_address         | VARCHAR(16777216) | Address that initiated the flash loan.                                                                                                                                                                                                                   |
| target\_address            | VARCHAR(16777216) | Address of the target recipient of the deposit tokens.                                                                                                                                                                                                   |
| token\_address             | VARCHAR(16777216) | Contract address of the token. For EVM chains, native currency (e.g. ETH, MATIC) is represented as the zero address (0x0000000000000000000000000000000000000000). For Solana, this is the mint address.                                                  |
| token\_name                | VARCHAR(16777216) | Full name of the token (e.g. "USD Coin", "Wrapped Ether").                                                                                                                                                                                               |
| token\_symbol              | VARCHAR(16777216) | Ticker symbol of the token (e.g. "USDC", "WETH").                                                                                                                                                                                                        |
| token\_decimals            | NUMBER(38,0)      | Number of decimal places used to represent the token's smallest unit. Used to convert raw amounts: normalized\_amount = raw\_amount / 10^decimals. For example, USDC has 6 decimals, so 2500000 raw units = 2.5 USDC.                                    |
| raw\_amount\_str           | VARCHAR(16777216) | Token amount in the smallest unit as a string. Same concept as `amount_raw_str` — the column is named `raw_amount_str` in models that follow the `raw_` prefix convention rather than the `_raw` suffix convention.                                      |
| 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.                                                                                  |
| amount                     | FLOAT             | Token amount normalized by the token's decimal precision (amount\_raw / 10^decimals). This is the human-readable value (e.g. 1.5 USDC rather than 1500000).                                                                                              |
| usd\_amount                | FLOAT             | USD value of the token amount at the time of the event, computed using the hourly USD exchange rate.                                                                                                                                                     |
| usd\_exchange\_rate        | FLOAT             | USD price per unit of the token at the time of the event, used to compute `usd_amount`. Sourced from Allium's hourly price feed.                                                                                                                         |
| fee\_raw\_amount\_str      | VARCHAR(16777216) | Raw fee charged for the flash loan, as a string to retain precision. Null for protocols with no flash loan fee (e.g. Morpho).                                                                                                                            |
| fee\_amount\_str           | VARCHAR(16777216) | Bridge fee amount as a string for full precision.                                                                                                                                                                                                        |
| fee\_amount                | FLOAT             | Decimal-adjusted amount of the bridge fee.                                                                                                                                                                                                               |
| fee\_usd\_amount           | FLOAT             | USD value of the bridge fee at the time of the transfer.                                                                                                                                                                                                 |
| extra\_fields              | VARIANT           | JSON object containing additional fields from the onchain event that are not part of the standard schema (e.g. nonce, fee metadata, protocol-specific parameters).                                                                                       |
| transaction\_hash          | VARCHAR(16777216) | Hash of the transaction that produced this record. Uniquely identifies a transaction within the blockchain.                                                                                                                                              |
| transaction\_index         | NUMBER(38,0)      | Zero-based position of the transaction within its block. The first transaction in a block has index 0.                                                                                                                                                   |
| transaction\_from\_address | VARCHAR(16777216) | 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(16777216) | 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.                                                                           |
| log\_index                 | NUMBER(38,0)      | Zero-based position of this event log within its transaction. The first log emitted by a transaction has index 0.                                                                                                                                        |
| topic0                     | VARCHAR(16777216) | First topic of the event log. For non-anonymous Solidity events, this is the keccak-256 hash of the event signature (e.g. `Transfer(address,address,uint256)`).                                                                                          |
| block\_number              | NUMBER(38,0)      | Sequential number of the block that contains this record. Starts at 0 (genesis block) and increments by 1 for each new block.                                                                                                                            |
| block\_timestamp           | TIMESTAMP\_NTZ(9) | Timestamp (UTC) of the block that contains this record.                                                                                                                                                                                                  |
| block\_hash                | VARCHAR(16777216) | Cryptographic hash of the block header that contains this record. Uniquely identifies a block.                                                                                                                                                           |
| unique\_id                 | VARCHAR(16777216) | Allium's deterministic unique identifier for this row. Generated from the fields that uniquely identify the record (e.g. transaction hash + log index). Stable across full refreshes.                                                                    |
