In progress. This table is not served yet. The page documents it as it lands.
facts.lending_market_flash_loans combines the flash-loan events of every lending protocol we decode into one table: one row per flash loan. A flash loan borrows tokens and repays them with a fee inside one transaction. lending_market_id keys each row to its market in the Registry.
Columns
| Column | Type | Description |
|---|---|---|
block_timestamp | TIMESTAMP | Time of the block containing the flash loan. Partition column. |
block_number | INT64 | Number of the block containing the flash loan. |
transaction_hash | STRING | Hash of the transaction that emitted the flash-loan event. |
log_index | INT64 | Position of the flash-loan event in the block. |
unique_id | INT64 | Row key: fingerprint of chain_id, block_number, transaction_hash, log_index. |
chain_id | STRING | Chain the flash loan happened on. |
lending_market_id | STRING | Market the loan drew from; joins dimensions.lending_markets. |
project_id | STRING | Protocol operating the market, such as aave. |
token_id | STRING | Token borrowed: {token_address}-{chain_id}. |
token_address | STRING | Contract address of the token borrowed. |
initiator_address | STRING | Account that started the flash loan. |
target_address | STRING | Contract that received the loan. |
amount_raw | STRING | Raw amount as text; a uint256 exceeds every BigQuery number type. |
premium_raw | STRING | Fee paid for the loan as text, in the borrowed token; null where the protocol charges none. |
Sample queries
- One token, one day
- Daily USD volume
Read one tokenβs flash loans on a single day. Cast
amount_raw to BIGNUMERIC and divide by 10^decimals from dimensions.tokens to get the token amount.