near.defi Table: fact_bridge_activity Type: Base Table
Description
This table contains all cross-chain bridge transactions on the NEAR Protocol blockchain, capturing token movements between NEAR and other blockchains through various bridge protocols including Rainbow Bridge, Wormhole, Multichain, Allbridge, and Omni. The data includes bridge-specific details such as source/destination chains, token addresses, amounts, and bridge protocol metadata. This table provides the foundation for cross-chain analytics, bridge volume analysis, and multi-chain ecosystem monitoring.Key Use Cases
- Cross-chain bridge volume analysis and flow monitoring
- Bridge protocol comparison and performance benchmarking
- Cross-chain token flow analysis and liquidity tracking
- Bridge security analysis and risk assessment
- Multi-chain portfolio tracking and analysis
- Bridge protocol adoption and user behavior analysis
- Cross-chain arbitrage opportunity detection
Important Relationships
- Links to
core.fact_transactionsthrough tx_hash for transaction context - Connects to
core.fact_blocksthrough block_id for temporal context - Provides bridge data for
defi.ez_bridge_activitywith enhanced metadata - Supports
defi.ez_intentswith cross-chain intent analysis - Enables analysis in
stats.ez_core_metrics_hourlyfor bridge 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 detectionsource_chainanddestination_chain: Critical for cross-chain flow analysistoken_address: Important for token-specific bridge activity analysisamount_rawandamount_adj: Essential for bridge volume calculationsplatform: Important for bridge protocol comparison and analysisdirection: Critical for understanding bridge flow direction (inbound/outbound)
Columns
| Column Name | Data Type | Description |
|---|---|---|
| BLOCK_ID | NUMBER | The height of the chain this block corresponds with. |
| BLOCK_TIMESTAMP | TIMESTAMP_NTZ | The date and time at which the block began. |
| TX_HASH | TEXT | Unique identifier (hash) of this transaction. |
| TOKEN_ADDRESS | TEXT | The contract address corresponding to the token, view details of the contract by following this address on the chain explorer. |
| AMOUNT_UNADJ | NUMBER | Unadjusted amount of tokens as it appears on-chain (not decimal adjusted). This is the raw token amount before any decimal precision adjustments are applied. For example, if transferring 1 NEAR token, the amount_raw would be 1000000000000000000000000 (1e24) since NEAR has 24 decimal places. This field preserves the exact on-chain representation of the token amount for precise calculations and verification. |
| AMOUNT_ADJ | NUMBER | Decimal adjusted amount of tokens (as float, rounded - use this generally). This field provides the token amount after applying the appropriate decimal precision adjustments based on the token’s decimal places. For example, if transferring 1 NEAR token, the amount_adj would be 1.0 after dividing the raw amount (1e24) by 10^24. This field is the most commonly used representation for token amounts in analytics and reporting as it provides human-readable values. |
| DESTINATION_ADDRESS | TEXT | The address tokens are being sent to, in a transfer or bridge transaction. |
| SOURCE_ADDRESS | TEXT | The originating address from which tokens are being sent, in a transfer or bridge transaction. |