Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Recall & Review
beginner
What is a transaction confirmation in blockchain?
A transaction confirmation means that a transaction has been included in a block and accepted by the network. Each confirmation increases trust that the transaction is permanent and won't be reversed.
Click to reveal answer
beginner
Why do we wait for multiple confirmations before considering a transaction final?
Waiting for multiple confirmations reduces the risk of a transaction being reversed due to chain reorganizations or forks. More confirmations mean higher security and trust.
Click to reveal answer
beginner
What is a common number of confirmations to wait for in Bitcoin before accepting a transaction as final?
Typically, 6 confirmations are considered safe in Bitcoin to ensure the transaction is permanent and irreversible.
Click to reveal answer
intermediate
How can a program detect when a transaction is confirmed?
A program can listen to blockchain events or query the blockchain to check if the transaction hash appears in a block and count how many blocks have been added after it.
Click to reveal answer
intermediate
What is a chain reorganization and how does it affect transaction confirmations?
A chain reorganization happens when a longer blockchain replaces a shorter one, potentially removing some blocks. This can cause previously confirmed transactions to become unconfirmed temporarily.
Click to reveal answer
What does one confirmation of a blockchain transaction mean?
AThe transaction is reversed
BThe transaction is sent to the network
CThe transaction is rejected
DThe transaction is included in a block
✗ Incorrect
One confirmation means the transaction is included in a block on the blockchain.
Why is it safer to wait for multiple confirmations?
ATo reduce risk of transaction reversal
BTo speed up the transaction
CTo increase transaction fees
DTo avoid paying taxes
✗ Incorrect
Multiple confirmations reduce the chance that a transaction will be reversed due to chain reorganizations.
How many confirmations are commonly considered safe in Bitcoin?
A3
B6
C1
D10
✗ Incorrect
6 confirmations are commonly accepted as safe for Bitcoin transactions.
What can cause a confirmed transaction to become unconfirmed?
AWallet backup
BTransaction fee increase
CChain reorganization
DMining difficulty drop
✗ Incorrect
Chain reorganizations can remove blocks, causing transactions to lose confirmations temporarily.
Which method can a program use to check transaction confirmations?
AQuery blockchain for transaction block and count subsequent blocks
BSend email to miner
CCheck wallet balance only
DRestart the blockchain node
✗ Incorrect
Programs check confirmations by finding the block containing the transaction and counting how many blocks came after it.
Explain what transaction confirmations are and why they matter in blockchain.
Think about how blocks build on each other to secure transactions.
You got /3 concepts.
Describe how a program can detect when a blockchain transaction is confirmed.
Consider how the blockchain data can be accessed and monitored.
You got /3 concepts.
Practice
(1/5)
1. What does transaction confirmation mean in blockchain?
easy
A. It means the transaction is deleted from the blockchain.
B. It means the transaction is reversed by the user.
C. It means the transaction is pending and not yet sent.
D. It means the transaction is safely recorded on the blockchain.
Solution
Step 1: Understand transaction confirmation meaning
Transaction confirmation means the blockchain network has recorded the transaction securely.
Step 2: Compare options with definition
Only It means the transaction is safely recorded on the blockchain. correctly states that confirmation means safe recording on the blockchain.
Final Answer:
It means the transaction is safely recorded on the blockchain. -> Option D
Quick Check:
Transaction confirmation = safe recording [OK]
Hint: Confirmation means transaction is securely recorded [OK]
Common Mistakes:
Confusing confirmation with transaction pending state
Thinking confirmation means deletion or reversal
Assuming confirmation means user approval
2. Which of the following is the correct way to wait for a transaction confirmation in JavaScript using async/await?
easy
A. await transaction.confirm();
B. transaction.wait();
C. await transaction.wait();
D. transaction.confirm();
Solution
Step 1: Identify correct async syntax
To wait for a promise in JavaScript, use await before the async function call.
Step 2: Match function name for confirmation
The standard method to wait for transaction confirmation is wait(), not confirm().
Final Answer:
await transaction.wait(); -> Option C
Quick Check:
Use await with wait() to confirm transaction [OK]
Hint: Use await with wait() method to confirm transaction [OK]
Common Mistakes:
Forgetting to use await causing unresolved promises
Using wrong method name like confirm()
Calling wait() without await leading to no pause
3. What will be the output of this JavaScript code snippet?