Allium Documentation Hub home page
Search...
⌘K
Ask AI
Data Status
Blog
Login
Book a Demo
Book a Demo
Search...
Navigation
Credit Debit
Credit Debit
Welcome
Data Catalog
⊙ Explorer
⊙ Datashares
⊙ Developer
⊙ Datastreams
⊙ Assistant
Changelog
Overview
Overview
Data Quality Verification
Data Caveats
Data Freshness
Data FAQ
Query Optimizations
Data Verticals
Chain Metrics
Stablecoins
Decoded
Token Transfers
Balances
DEX Trades
Prediction Markets
NFT Trades
Wallet 360
Bridges
Lending
Prices
Identity
DefiLlama
Utility
Staking
Solana
Solana
Hyperliquid
Hyperliquid
Bitcoin Ecosystem
Overview
Bitcoin
Bitcoin Cash
Dogecoin
Litecoin
Rootstock
Stacks
EVM
Overview
Core Schemas
Ethereum
Beacon Chain
Holesky 🌱
Abstract
Aleph Zero
ALIENX
Apechain
Arbitrum
Arbitrum Nova
Arbitrum Sepolia
Astar 🌱
Avalanche
B3
Base
Berachain
Blast
BNB Smart Chain (BSC)
Botanix
Celo
Codex
Core
Degen
EDU Chain
Ethereum Hoodi
Ethereum Sepolia
Everclear
Fantom
Fraxtal
Gnosis
Gravity
HyperEVM 🌱
IMX zkEVM
Ink
Katana
Kinto
Linea
LogX
Manta Pacific
Mantle 🌱
Metis
Mode
Monad Testnet 🌱
OASYS
Optimism
Plume
Polygon
Polygon zkEVM
Proof of Play Apex 🌱
Proof of Play Boss 🌱
re.al
Reya
Ronin 🌱
Sanko
Scroll
Scroll Sepolia
Sei 🌱
Soneium
Sonic
Stable Testnet
Starknet
Superposition
SX Rollup
Tron
Unichain
Unichain Sepolia 🌱
Vana
WeMix 🌱
WINR Chain
Worldchain
Overview
Raw
Assets
Overview
Token Transfers
Credit Debit
Credit Debit
Native Credit Debit
ERC20 Credit Debit
ERC721 Credit Debit
ERC1155 Credit Debit
Bridges
DEX
Metrics
X Layer 🌱
Xai 🌱
zkSync
Zora
Cosmos Ecosystem
Overview
Core Schemas
Babylon
Celestia
Cosmos
dYdX
Dymension
Injective
Kava 🌱
Mantra 🌱
Osmosis
Provenance
Move Ecosystem
Overview
Aptos
Sui
Other Ecosystems
Hedera 🌱
Near
Stellar
TON
XRP Ledger
On this page
Overview
Advantages Over Transfer Tables
Credit Debit
Credit Debit
The credit-debit model provides a double-entry accounting system for tracking asset movements on the blockchain. This model is particularly useful for analyzing token flows, calculating balances, and understanding asset distribution patterns.
Overview
Credit Debit vs Transfers
Credit-debit tables transform single transfer events into two corresponding entries:
A debit (negative) entry for the sending address
A credit (positive) entry for the receiving address
Example
Using an ERC20 token as an example, a
token transfer
will be represented as follows:
from_address
to_address
amount
event
X
Y
1250
X transfers 1250 tokens to Y
In credit debit, it will be represented as
two rows
.
address
counterparty_address
amount
event
X
Y
-1250
X decrease 1250 tokens to Y
Y
X
1250
Y increase 1250 tokens from X
Advantages Over Transfer Tables
Balance Calculation
Easy summation of all credits and debits for an address
Simplified queries for net position calculations
Natural handling of complex transactions
Flow Analysis
Clear visualization of token inflows and outflows
Simple aggregation of total volume by address
Easy identification of major senders/receivers
Data Consistency
Built-in verification through balanced entries
Self-auditing through equal total credits and debits
Simplified reconciliation process
ERC1155 Transfers
Native Credit Debit
Assistant
Responses are generated using AI and may contain mistakes.