added

[2023/01/19] New data models for Solana

Hey team! We are releasing new Solana data models with consistent table and column naming, and introducing new tables for native SOL transfers and token balance changes.

All tables mentioned below are in solana_mainnet database unless otherwise indicated.

TL;DR

  • Non-vote and vote transactions are separated into different tables transactionsand vote_transactions . So do instructions.
  • Legacy tables mentioned below will be deprecated on Jan 31.
New Table NameLegacy Table NameDescription
blocksmetadata_raw_dataSolana blocks metadata
rewardsrewards_raw_dataBlock rewards
transactionstransactions_raw_dataNon-vote transactions
vote_transactionstransactions_raw_dataVote transactions
balance_changesbalance_change_raw_dataSOL balance changes
token_balance_changetoken_balance_changes_raw_dataSPL token balance changes
instructionsinstructions_raw_dataInstructions from non-vote transactions
vote_instructionsinstructions_raw_dataInstructions from vote transactions
token_transferstoken_transferTransfer (, burn, mint) events of SPL tokens
mints_creationmint_creationMint token creation events
token_accounts_creationtoken_account_mapToken account creation events
transfers-Transfer events of SOL
accounts_creation-Account creation events

Detailed changes

  • Partition column data_creation_date is now of date type, e.g. 2023-01-01
  • The unit for columns representing Solana amount is changed from SOL to Lamport. The columns include
    • rewards.amount
    • transactions.fee
    • balance_changes.pre_balance
    • balance_changes.post_balance
    • balance_changes.balance_change