2. Blockchain Transactions Explained For Everyone
Introduction:
Welcome to the fascinating world of cryptocurrency, where every digital coin movement
is powered by a decentralized blockchain network. At its heart, a blockchain is like an
incredibly secure and transparent public ledger that records all transactions. Whenever
you send digital money, a global network of validator nodes (powerful computers) swiftly
springs into action to confirm and add your transaction to this ever-growing digital
record.
To ensure everything is accurate and secure, these validators must agree on the details
of your transaction, a crucial process called consensus. For their vital work in
maintaining the network, they receive rewards. A small part of this reward comes from
you, the user, in the form of a "gas fee," which acts like a tiny payment for using the
network's resources.
This Teaching Thursday, we're pulling back the curtain to dive deep into the logic of
making a blockchain transaction. Before we explore why these "gas fees" exist and how
network congestion impacts them, we'll first uncover the fundamental mechanics of how
your digital money moves across the blockchain.
About blockchain transactions:
Blockchain transactions are similar to real-world online transactions. Think of it like net
banking transactions that you do in daily life. In banking online transactions, banks are
the intermediary and handle the process of exchanging the money.
Similarly, in the blockchain ecosystem, cryptos are exchanged in wallet addresses, and
that is achieved through the combination of keys, which we further dive into in the
step-by-step guide.
3. How Your Digital Money Moves: A Step-by-Step Guide
Imagine you want to send some CIFD tokens to a friend. Here's what happens behind
the scenes.
1. Transaction Initiation
○ Person A uses their crypto wallet to create a transaction: sending 10 CIFD to Person
B's public address.
○ A's wallet uses their private key to digitally sign the transaction, proving they are the
true owner of the funds.
○ During the transaction, a small amount of transaction fees, also known as gas fees,
is added for transaction confirmation services.
2. Public Key & Address
○ Person A’s public key (linked to their wallet) is used to generate their wallet address.
○ Person B provides their public wallet address, which acts like a receiving bank
account.
○ No one can access the actual funds without the matching private key, ensuring
security.
3. Broadcast to Network
○ The signed transaction is broadcast to the blockchain network.
○ Nodes receive it and temporarily store it in the mempool (pending transactions list).
4. 4. Transaction Validation
○ Nodes verify:
■ The digital signature (made with the private key) matches the public key.
■ A’s wallet has at least 10 CIFDs.
■ The format and structure of the transaction are correct.
○ If everything is valid, the transaction is approved for block inclusion.
○ Transactions offering higher gas fees are usually prioritized and verified before
others.
5. Block Formation
○ A miner (PoW) or validator (PoS) picks this transaction and groups it with others into
a block.
○ The block is then prepared with its own hash, including a reference to the previous
block’s hash.
6. Consensus and Block Validation
○ The block is broadcast to the network for consensus (majority agreement).
○ If the block is valid, all nodes add it to their local copy of the blockchain.
7. Transaction Finalization
○ Once the block is added, the 10 CIFD is transferred from A’s address to B’s address.
○ This transfer is now permanent, timestamped, and publicly visible on the blockchain.
Post-transaction:
After the transaction events are completed, other transactions are added to the queue,
and the process of block addition continues, giving more conformity to the transaction.
The more the number of blocks added, the higher the degree of transaction being
confirmed.
Users can check the confirmed transaction by entering the Transaction ID or their wallet
address in the search bar or the entire history of transactions in the blockchain explorer,
which is a tool to validate transactions across the blockchains. It shows all the details of
transactions and data is publicly available, keeping the sender’s and receiver’s identities
anonymous.
5. Quick Summary Table:
Term Definition Purpose Example
Private Key A secret code (like a
password) that proves
you own and control
your crypto.
To sign (approve)
transactions and
access your funds.
Person A uses
their private key to
send 10 CIFD to
Person B.
Public Key A code generated from
the private key that’s
safe to share publicly.
To create a wallet
address and help
verify signed
transactions.
Person A’s public
key helps the
network confirm
they really sent the
CIFD.
Wallet
Address
A shortened,
user-friendly version of
your public key used to
send or receive crypto.
To act like your bank
account number on
the blockchain.
Person B shares
their wallet address
to receive 10 CIFD.
Digital
Signature
A unique stamp made
by the private key that
proves a transaction is
real.
To prove a
transaction wasn’t
faked or changed, it
verifies authenticity.
The signature tells
the network, “Yes,
A actually sent
this.”
Key Pair
Relationship
The public key is
mathematically linked to
the private key, but no
one can guess one from
the other.
To keep the system
secure, you can
share your public key
but must keep your
private key secret.
Person A can
share their wallet
address (from the
public key) but
keeps the private
key locked.
6. Best blockchain transaction tips:
● Check the "Traffic" First: Before you make a transaction, check the network's gas
fee tracker (like Etherscan's Gas Tracker for Ethereum). This shows you the current
network congestion and helps you see if fees are high or low.
● Time Your Transactions: If your transaction isn't urgent, try to send it during
"off-peak" hours. These are usually late at night or on weekends when there's less
network activity, leading to lower gas prices.
● Be Flexible with Your Speed: Most wallets give you options for transaction speed
(e.g., "Slow," "Average," or "Fast"). If you're not in a hurry, choose a slower speed to
pay a lower gas fee.
In case of faster transaction confirmation, you might end up paying higher gas fees,
adding more cost to the original transaction amount.
● Understand Your Gas Limit: Your wallet will suggest a gas limit, which is the
maximum you're willing to pay. Don't set it too low, or your transaction might fail. If
it's a simple transfer, the suggested limit is usually accurate and safe.
● Use Layer 2 Solutions: For some networks like Ethereum, consider using "Layer 2"
solutions (like Polygon or Arbitrum). These are separate networks that "bundle"
transactions together, making them much faster and a lot cheaper than the main
network.
● Know Your Transaction Type: Remember that a simple transfer costs less gas
than a complex action, like interacting with a smart contract. Be aware of the
potential cost before you commit to a complex action.
7. Final Thoughts:
At its heart, a blockchain transaction is simply a new way to transfer value and trust
from one person to another. It's a normal activity for any crypto user, allowing you to
send digital assets to anyone, anywhere in the world, at any time, without needing
permission from a bank or central authority.
Just one final and crucial piece of advice before you wrap up: always triple-check your
wallet address and the selected blockchain network before you send any crypto. Unlike
traditional bank transfers, confirmed blockchain transactions are irreversible. If you send
your crypto to the wrong address, it's gone permanently, with no one to call to get it
back. A quick double-check can save you from a major loss and ensure your transaction
is a success!
Image sources: UpGrad
Disclaimer: Crypto products and NFTs are unregulated and can be highly risky. There
may be no regulatory recourse for any loss from such transactions.