mirror of
https://github.com/FlipsideCrypto/solana-models.git
synced 2026-02-06 09:41:44 +00:00
* description rules and fact_txs update * blocks update * idls and labels * wip * wip * update desc * update * update doc rules * update table desc per new rules * updates
2.4 KiB
2.4 KiB
{% docs fact_transactions %}
Description
This table contains one record per transaction on the Solana blockchain, capturing high-level transaction metadata as recorded on-chain. Each record includes block timestamp, transaction identifiers, account and token balance changes, program instructions, and execution metadata for every transaction processed on Solana mainnet. The table covers all finalized transactions, both successful and failed, and is updated as new blocks are processed. Data is sourced from on-chain transaction logs and normalized for analytics.
Key Use Cases
- Transaction-level analytics and protocol usage tracking
- Fee analysis and cost monitoring for Solana transactions
- Wallet and account activity analysis
- Token and asset movement tracking
- Program and instruction usage statistics
- Success/failure rate analysis for transactions
- Building time-series dashboards for network activity
Important Relationships
- Each transaction is linked to its corresponding block in
core.fact_blocksvia theblock_idfield - Used as a source for
core.fact_events,core.fact_transfers, and other gold-level models for event, transfer, and program analytics - Joins with
core.fact_blocksfor block-level context and withcore.fact_token_balancesfor token movement analysis - Downstream models may use
tx_idto join with logs, events, and decoded instructions tables - Many curated and derived tables are built from this model for specialized analytics. For example, use
core.fact_eventsandcore.fact_events_innerfor instruction/event-level analysis, orcore.fact_transfersfor transfer analytics. When possible, prefer these curated tables over querying the largecore.fact_transactionstable directly, as they are optimized for specific analytical use cases.
Commonly-used Fields
tx_id: Unique identifier for each transaction, used for joins and traceabilityblock_idandblock_timestamp: For time-series and block-level analysissigners: Key for wallet attribution and user activity analysisfee: For cost and economic analysissucceeded: Indicates transaction success/failureaccount_keys,pre_balances,post_balances: For account-level balance change analysisinstructions,inner_instructions: For program and protocol usage analyticslog_messages: For debugging and advanced protocol analysis
{% enddocs %}