near.defi Table: ez_lending Type: View
Description
This table provides an enhanced view of all lending protocol transactions on the NEAR Protocol blockchain, primarily capturing activities on the Burrow lending protocol with token metadata, pricing information, and decimal adjustments. The table includes both raw and adjusted amounts, USD values, and comprehensive token context, making it the primary table for lending analytics and risk assessment. This easy view eliminates the need for complex joins and calculations, providing ready-to-use data for DeFi lending analysis and reporting.Key Use Cases
- Lending protocol volume analysis with accurate decimal-adjusted amounts and USD values
- Borrowing and lending pattern analysis and risk assessment with economic context
- Collateral utilization analysis and liquidation monitoring with value calculations
- Interest rate impact analysis and yield optimization
- Protocol health monitoring and risk metrics calculation
- User behavior analysis in lending protocols with value context
- Cross-protocol lending comparison and performance benchmarking
Important Relationships
- Enhances
defi.fact_lendingwith pricing and metadata fromprice.ez_prices_hourly - Combines token metadata from
core.dim_ft_contract_metadatafor complete token context - Supports
defi.ez_intentswith lending intent analysis - Enables analysis in
stats.ez_core_metrics_hourlyfor lending metrics - Provides foundation for all lending-related analytics and reporting
- Powers cross-protocol analysis with other DeFi activities
Commonly-used Fields
amountandamount_usd: Essential for accurate lending volume analysisblock_timestamp: Primary field for time-series analysis and trend detectionactions: Critical for lending action classification and analysissender_id: Important for user behavior analysis and lending patternsplatform: Critical for protocol-specific analysis and comparisonsymbol: Important for token identification and lending analysistoken_address: Essential for token-specific lending activity analysis
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. |