Fintech Lab
Lesson 71Crypto-fiat boundaryAdvanced
On-chain ↔ off-chain reconciliation
Your ledger says you hold 10 BTC. The blockchain says you hold 9.998. Which is right?

Your crypto-fiat fintech custodies user crypto. Your INTERNAL ledger records every user's BTC balance (off-chain, just SQL rows). The ACTUAL chain holds the UTXOs / account balances. These two views MUST agree to the satoshi. Discrepancies happen: a chain reorg invalidates a deposit you already credited, a dust transaction adds satoshis you didn't book, network fees deducted at broadcast time aren't reflected in user wallets. A reconciliation job runs every block (every ~10 minutes for BTC) comparing the two views and posting CORRECTION entries. This lesson walks one such correction: chain shows 0.002 BTC less than ledger; you book a 'reconciliation adjustment' to bring them back in sync.

Fintech Lab is a free, interactive lab for fintech engineers. Real ledger, your own sandbox, engineering patterns from production. See all 85 lessons.

Search lessons

Type to find any of the 85 lessons. Press Enter to open.