near.defi Table: fact_lending Type: Base Table
Description
This table contains all lending protocol transactions on the NEAR Protocol blockchain, primarily capturing activities on the Burrow lending protocol. The data includes lending actions such as deposits, withdrawals, borrows, and repayments, along with associated token amounts and protocol metadata. This table provides the foundation for lending analytics, protocol risk assessment, and DeFi lending market analysis across the NEAR ecosystem.Key Use Cases
- Lending protocol volume analysis and market activity monitoring
- Borrowing and lending pattern analysis and risk assessment
- Collateral utilization analysis and liquidation monitoring
- Interest rate impact analysis and yield optimization
- Protocol health monitoring and risk metrics calculation
- User behavior analysis in lending protocols
- Cross-protocol lending comparison and performance benchmarking
Important Relationships
- Links to
core.fact_transactionsthrough tx_hash for transaction context - Connects to
core.fact_blocksthrough block_id for temporal context - Provides lending data for
defi.ez_lendingwith enhanced metadata - Supports
defi.ez_intentswith lending intent analysis - Enables analysis in
stats.ez_core_metrics_hourlyfor lending metrics - Powers cross-protocol analysis with other DeFi activities
Commonly-used Fields
tx_hash: Essential for linking to transaction details and verificationblock_timestamp: Primary field for time-series analysis and trend detectionactions: Critical for lending action classification and analysistoken_address: Important for token-specific lending analysisamount_rawandamount_adj: Essential for lending volume calculationssender_id: Important for user behavior analysis and lending patternsplatform: Critical for protocol-specific analysis and comparison
Columns
| Column Name | Data Type | Description |
|---|---|---|
| PLATFORM | TEXT | |
| TX_HASH | TEXT | Unique identifier (hash) of this transaction. |
| BLOCK_ID | NUMBER | |
| BLOCK_TIMESTAMP | TIMESTAMP_NTZ | The date and time at which the block began. |
| SENDER_ID | TEXT | The id, or wallet address, of the sender from the receipt action. |
| ACTIONS | TEXT | The action that the user is taking. |