Credit Debit Model

The credit debit model combines Hedera transfers, allowing you to easily track the inflows and outflows of every Hedera token belonging to all addresses. This model provides a comprehensive view of token movements, including both credits (positive amounts) and debits (negative amounts).

Schema Details

Column NameTypeDescription
accountVARCHARThe address of the account
token_idVARCHARThe id of the token
raw_amount_strVARCHARThe amount of the token in the raw format. This is negative for debits and positive for credits
raw_amountFLOATThe amount of the token in the raw format. This is negative for debits and positive for credits
amount_strVARCHARThe amount of the token in the normalized format. This is negative for debits and positive for credits
amountFLOATThe amount of the token in the normalized format. This is negative for debits and positive for credits
usd_amountFLOATThe amount of the token in the normalized format, in $USD
is_approvalBOOLEANWhether the transaction is an approval
payer_account_idVARCHARThe id of the payer account
entity_idVARCHARThe id of the entity
nonceBIGINTThe nonce of the transaction
resultVARCHARThe result of the transaction
block_hashVARCHARThe hash of the block
block_numberBIGINTThe number of the block
block_timestampTIMESTAMPThe timestamp of the block
consensus_timestampTIMESTAMPThe consensus timestamp of the transaction
transaction_typeVARCHARThe type of the transaction
transaction_hashVARCHARThe hash of the transaction
transaction_idVARCHARThe id of the transaction
transfers_indexBIGINTThe index of the transfer
unique_idVARCHARThe unique id of the transaction