Working out ownership from the blockchain
The amount of digital currency a person owns, found by adding up all the money they received and taking away all the money they sent in the blockchain records, in time order.
Understanding Working out ownership from the blockchain in IGCSE Computer Science Paper 1
What it does: The blockchain lists every transaction in order, so you work through them one at a time to track who owns what. Ava's money in is 10 and her money out is 4, which leaves 6. Ben only received 4. Money in minus money out: 10 - 4 = 6. Sent coins are taken away, not added. Money in is 8 + 5 = 13. Money out is 3. So 13 - 3 = 10 coins. Ben received 5 and sent 2, so 5 - 2 = 3 coins. Cai has 2 coins. The blockchain records are all that is needed. Balances are worked out by adding up the transactions.
Common mistakes: Money sent must start at 0 before the records are added up. Starting at 10 would wrongly take 10 coins off the balance. It should be moneyOut ← 0. The records must be read in time order, so they are sorted by time-stamp. Sorting by amount puts them in the wrong order. It should be SORT chain BY timestamp.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 520–546) and word search (Modules 510–546).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
balanceFill in the Blanks
Spot the Error
Student with a class code? Join your class →