The solana.assets.credit_debit table holds a record of transfers of all spl-tokens and native SOL. This table will include two rows for every transfer event, with one row representing credit and one row representing debit.

Difference with transfers

Unlike token transfers, data here is organized into credit and debit rows (similar to the accounting concept called “double entry book”).

Column NameDescriptionTypeExample CreditExample (DEbit)
addressAddress where the token is being transferred from.varcharCTz5UMLQm2SRWHzQnU62Pi4yJqbNGjgRBHqqp6oDHfF7dSaHguZBem6EhwBtyDECVmCwsWirH1Dh2i2PpG8e7mF
counterparty_addressAddress where the token is being transferred to.varchardSaHguZBem6EhwBtyDECVmCwsWirH1Dh2i2PpG8e7mFCTz5UMLQm2SRWHzQnU62Pi4yJqbNGjgRBHqqp6oDHfF7
token_accToken account sender address.varcharCKxTHwM9fPMRRvZmFnFoqKNd9pQR21c5Aq9bh5h9oghX6U94xsq7wEoqQsB9dnA6cG98ZAu11d5MURVmMHp8gCjE
counterparty_token_accToken account recipient address.varchar6U94xsq7wEoqQsB9dnA6cG98ZAu11d5MURVmMHp8gCjECKxTHwM9fPMRRvZmFnFoqKNd9pQR21c5Aq9bh5h9oghX
mintMint address of the token transferred.varcharSo11111111111111111111111111111111111111112So11111111111111111111111111111111111111112
decimalsThe number of decimal points the token amounts are represented in. This is used to calculate the normalized amount of a token by taking the raw amount divided by 10^decimal_points.number99
symbolSymbol of the token transferredvarcharSOLSOL
raw_amountRaw of amount of token (unnormalized) transferred.float-100,000,000,000100,000,000,000
raw_amount_strRaw of amount of token (unnormalized) transferred, in string format.varchar-100000000000100000000000
amountAmount of token transferred, normalized.float-100100
amount_strAmount of token transferred, normalized in string format.varchar-100100
usd_amountUSD value of the token amount transferred.float-2,1832,183
usd_exchange_ratePrice of the token at the time of transfer.varchar21.8321.83
block_slotBlock slot of the transfer.varchar190,517,728190,517,728
block_heightBlock height of the transfernumber173,456,263173,456,263
block_timestampBlock timestamp of the transfer.timestamp_ntz2023-04-26 03:13:402023-04-26 03:13:40
block_hashBlock hash of the transfer.varchar49f7BzeVSFbbZFJATov5Zqjfj8oYmkRXk4cfcWoD6uLd49f7BzeVSFbbZFJATov5Zqjfj8oYmkRXk4cfcWoD6uLd
txn_idTransaction ID of the transfer.varchar4cyTVSNny69cMuZBoiaGucHB7DAqDwUybJ2Eu7Gdqha8XK6nsiLTKNNF8Ewrkm4N56TCk5HvGMakJh9FRSzrcUk4cyTVSNny69cMuZBoiaGucHB7DAqDwUybJ2Eu7Gdqha8XK6nsiLTKNNF8Ewrkm4N56TCk5HvGMakJh9FRSzrcUk
txn_indexTransaction Index of the transfer.number1,9781,978
instruction_indexTransfer instruction index.number44
inner_instruction_indexTransfer inner instruction index.number44
program_nameProgram name of the transfer transaction. Includes system and spl-tokenvarcharspl-tokenspl-token
typeIncludes transfer, transferChecked, setAuthority, transferWithSeedvarchartransfertransfer
transfer_typeTransfer type. Includes sol_transfer, spl_token_transfer, token_account_transfervarcharspl_token_transferspl_token_transfer
unique_idUnique id of the transfer.varchartxn_id-4cyTVSNny69cMuZBoiaGucHB7DAqDwUybJ2Eu7Gdqha8XK6nsiLTKNNF8Ewrkm4N56TCk5HvGMakJh9FRSzrcUk_i_index-4_ii_index-4_credittxn_id-4cyTVSNny69cMuZBoiaGucHB7DAqDwUybJ2Eu7Gdqha8XK6nsiLTKNNF8Ewrkm4N56TCk5HvGMakJh9FRSzrcUk_i_index-4_ii_index-4_debit