What are transactions?

A transaction is like making a trade at the toy store, you give something, and you get something else in return.

Imagine you have 10 stickers, and your friend has 5 candies. You both want to swap stuff. So you agree: you give them 5 stickers, and they give you 2 candies. That whole back-and-forth is a transaction, it’s just like when you use money at the store, but instead of coins, we’re using things like stickers or candies.

How Transactions Work

In real life, transactions happen all around us. When you buy ice cream with your allowance, that's a transaction too: you give them money, and they give you ice cream.

Sometimes, people use something called money to make it easier, instead of trading stickers for candies directly, you might trade stickers for money, then use the money to get candies. That’s still one big transaction, just with more steps!

Transactions in Action

Think about your piggy bank. When you put coins in, that's like giving something away. When you take coins out, that's like getting something back. Every time you do that, you're having a transaction, and it’s all part of how we keep track of what we have and what we give away! A transaction is like making a trade at the toy store, you give something, and you get something else in return.

Imagine you have 10 stickers, and your friend has 5 candies. You both want to swap stuff. So you agree: you give them 5 stickers, and they give you 2 candies. That whole back-and-forth is a transaction, it’s just like when you use money at the store, but instead of coins, we’re using things like stickers or candies.

Take the quiz →

Examples

  1. Sending money from your bank to a friend’s account.
  2. Buying a soda with a vending machine.
  3. Completing a puzzle where each piece fits perfectly.

Ask a question

See also

Discussion

Recent activity