In progress. This table is not served yet. The page documents it as it lands.
facts.lending_market_withdrawals combines the withdrawal events of every lending protocol we decode into one table: one row per withdrawal of a token from a lending market. A withdrawal takes deposited tokens back out of the market. 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 withdrawal. Partition column. |
block_number | INT64 | Number of the block containing the withdrawal. |
transaction_hash | STRING | Hash of the transaction that emitted the withdrawal event. |
log_index | INT64 | Position of the withdrawal event in the block. |
unique_id | INT64 | Row key: fingerprint of chain_id, block_number, transaction_hash, log_index. |
chain_id | STRING | Chain the withdrawal happened on. |
lending_market_id | STRING | Market the withdrawal left; joins dimensions.lending_markets. |
project_id | STRING | Protocol operating the market, such as aave. |
token_id | STRING | Token withdrawn: {token_address}-{chain_id}. |
token_address | STRING | Contract address of the token withdrawn. |
withdrawer_address | STRING | Account the protocolβs event names as the withdrawer. |
to_address | STRING | Account the tokens were sent to. |
amount_raw | STRING | Raw amount as text; a uint256 exceeds every BigQuery number type. |
Sample queries
- One market, one day
- Daily USD volume
Read one marketβs withdrawals on a single day. Cast
amount_raw to BIGNUMERIC and divide by 10^decimals from dimensions.tokens to get the token amount.