solana.assets.balance_changes is a view that consolidates balances changes per transaction, and tries to attribute it to the counterparties contributing to each balance change, by joining with the solana.assets.transfers. Each row represents a change in balance of a party in the transaction.

Due to invisible sol transfers in solana, not all balance changes will be fully associated with transfers from the solana.assets.transfers table. This results in balance changes not/partially attributed to counterparties.

We will attempt to surface more invisible sol transfers and improve the attribution of counterparties, this is work in progress.

Table Columns

ColumnDescriptionTypeExample
typeThe type of balance change. Current available types:
sol_transfer - a sol transfer
spl_transfer - a spl transfer between 2 existing token accounts
new_spl_account - creation of a new a spl token account with non-zero balance
spl_changed_owner - transfer of ownership of a token account, and thus its balance
varcharsol_transfer
addressAddress of the balance changevarcharDxbwEA8LNprJpsoArgE9gLx5cbrY64pvaiaQLJC4Ng1w
token_accountToken account of the balance change, only available for an spl token accountvarchar5bWabVkoTkv617PFRX2VwLEmJREGxnP5GLUbPGvWu49g
mintMint of the balance changevarcharSo11111111111111111111111111111111111111112
symbolSymbol of the tokenvarcharSOL
decimalsDecimals of the tokennumber6
pre_tx_balanceBalance at the start of the transactionvarchar624361102
post_tx_balanceBalance at the end of the transactionvarchar8069719271
tx_balance_changeChange in balance for the transaction, calculated by post_tx_balance - pre_tx_balancevarchar7445358169
transfers_raw_amount_sumThe sum of the transfers in/out of the address/account, extracted from the solana.assets.transfers tablevarchar12500
transfers_counterpartiesThe list of counterparties of all transfers of the address/accountvariant[
"4zdNGgAtFsW1cQgHqkiWyRsxaAgxrSRRynnuunxzjxue"
]
agg_transfers_detailsDetails about the transfers to/from the address/accountvariant[
{
"counterparty_address": "4zdNGgAtFsW1cQgHqkiWyRsxaAgxrSRRynnuunxzjxue",
"raw_amount": 1.000000000000000e+00
}
]
is_attribution_completeReflects if the total balance change can be attributed to known transfers extracted from solana.assets.transfersbooleantrue
block_slotBlock slot of the transfervarchar190,430,409
block_heightBlock height of the transfernumber173,371,181
block_timestampBlock timestamp of the transfertimestamp_ntz2023-04-25 15:55:07
block_hashBlock hash of the transfervarchar8cAnWkjiy7VENBH3h1pN2rFQJLJsujB87bTcfYJNnvtD
txn_idTransaction ID of the transfervarchar4iMB9gP6nf5atgDpofK9hUkBiqiLBxqtocMc64vHBwZvR8iJiuyBdcvaHBwCxk5W1szK9jFFo3XwsSZ2APdPo6Um
txn_indexTransaction Index of the transfernumber1,011
unique_idUnique id of the transfervarchartxn_id-4iMB9gP6nf5atgDpofK9hUkBiqiLBxqtocMc64vHBwZvR8iJiuyBdcvaHBwCxk5W1szK9jFFo3XwsSZ2APdPo6Um_i_index-2_ii_index-0