One balance change per (account, transaction, mint), on any chain:
solana_account_transaction with wallet_transaction in place of
solana_transaction, and no ledger account or customer. The ledger accounts
holding an address come through wallet_address → wallet → ledger_account, so
a wallet several customers share is stored once. Balances are base units.
Ingest contract, for any chain's pipeline. A row counts toward balances only when:
walletAddressId and tokenId are set: the address is one of ours, the mint a known token.
amount is the change in base units. postBalance, where the chain reports
it, is the balance after; elsewhere readers run a sum of amount.
its wallet_transaction has block_time, and slot / index_within_block
hold the chain's own ordering (EVM: block number, log index).
mint is a token's contract address, or native for a chain's own coin.
dbmate owns the DDL: 20261019165925_wallet_account_transaction.sql, then
20261023193347_wallet_transaction_network.sql.
One balance change per (account, transaction, mint), on any chain:
solana_account_transactionwithwallet_transactionin place ofsolana_transaction, and no ledger account or customer. The ledger accounts holding an address come through wallet_address → wallet → ledger_account, so a wallet several customers share is stored once. Balances are base units.Ingest contract, for any chain's pipeline. A row counts toward balances only when:
walletAddressIdandtokenIdare set: the address is one of ours, the mint a known token.amountis the change in base units.postBalance, where the chain reports it, is the balance after; elsewhere readers run a sum ofamount.wallet_transactionhasblock_time, andslot/index_within_blockhold the chain's own ordering (EVM: block number, log index).mintis a token's contract address, ornativefor a chain's own coin.dbmate owns the DDL:
20261019165925_wallet_account_transaction.sql, then20261023193347_wallet_transaction_network.sql.