Transaktionslebenszyklus
Vom Signieren bis zum Mining
Transaktionslebenszyklus ist eine kostenlose Web3 & DApp Development Fundamentals-Lektion auf CoddyKit. Dies ist Lektion 2 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des Web3 & DApp Development Fundamentals-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der Web3 & DApp Development Fundamentals-Kurs umfasst insgesamt 4 Lektionen.
Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.
From Click to Confirmation
When you send a transaction, a lot happens behind the scenes before it becomes permanent.
This lesson walks through the full transaction lifecycle, from signing to inclusion in a block.
Step 1: Building the Transaction
Your wallet assembles a transaction object containing the recipient, value, data, gas settings, and a nonce.
tx = {
to: 0xRecipient...,
value: 1000000000000000000, // 1 ETH
nonce: 7,
gasLimit: 21000,
maxFeePerGas: 30 gwei
}Step 2: Signing
The wallet signs the transaction with your private key, producing a digital signature.
The signature proves you authorized it without ever revealing your private key. Anyone can verify it using your public address.
Step 3: Broadcasting
The signed transaction is broadcast to a node, which validates it and gossips it to peers across the network.
Within seconds, nodes everywhere know about your pending transaction.
Step 4: The Mempool
Pending transactions wait in the mempool (memory pool) — a holding area for transactions not yet included in a block.
Validators pick from the mempool when building the next block.
mempool (pending):
tx A (tip: 5 gwei)
tx B (tip: 2 gwei)
tx C (tip: 8 gwei) <- picked firstStep 5: Selection by a Validator
A validator building a block selects transactions, usually favoring higher fee tips for more revenue.
Paying a higher tip can speed up inclusion, especially when the network is congested.
Step 6: Execution
The validator executes the transaction on the EVM, updating account balances and contract state, consuming gas as it goes.
If it runs out of gas or hits an error, it reverts — but the gas spent is still consumed.
Step 7: Inclusion in a Block
The executed transaction is packed into a new block along with others. The block is proposed and attested to by validators.
At this point your transaction has one confirmation.
Step 8: Confirmations and Finality
As more blocks build on top, your transaction gains confirmations. On Ethereum PoS, it eventually becomes finalized and irreversible.
Now the transfer or contract call is permanently settled.
Receipts
After execution, the network produces a transaction receipt recording status (success or revert), gas used, and any emitted events (logs).
Apps read receipts to confirm what actually happened on-chain.
receipt = {
status: 1, // 1 = success, 0 = revert
gasUsed: 21000,
blockNumber: 18250431,
logs: [ ... ]
}Putting It Together
A transaction is built, signed, broadcast, queued in the mempool, selected and executed by a validator, included in a block, and finally confirmed and finalized.
A receipt records the outcome.
Quick Check
Test your understanding of the lifecycle.
Recap: Transaction Lifecycle
You learned the stages:
- Build and sign with the private key
- Broadcast to the network
- Wait in the mempool
- Selected, executed, and included in a block
- Confirmed and finalized, with a receipt
Next: gas limits and fees.
Häufig gestellte Fragen
Ist die Lektion „Transaktionslebenszyklus“ kostenlos?
Ja — der vollständige Text von „Transaktionslebenszyklus“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des Web3 & DApp Development Fundamentals-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der Web3 & DApp Development Fundamentals-Kurs umfasst insgesamt 4 Lektionen.
Was lerne ich in „Transaktionslebenszyklus“?
Vom Signieren bis zum Mining Du übst Web3 & DApp Development Fundamentals mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.
Brauche ich Erfahrung, um Web3 & DApp Development Fundamentals zu starten?
Keine Vorkenntnisse erforderlich. Web3 & DApp Development Fundamentals auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 2 von 4.
Wie lange dauert die Lektion „Transaktionslebenszyklus“?
Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.
Kann ich in dieser Web3 & DApp Development Fundamentals-Lektion Code schreiben und ausführen?
Ja. Jede Web3 & DApp Development Fundamentals-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.
Alle Lektionen in diesem Kurs
- Was ist Gas?
- Transaktionslebenszyklus
- Gas-Limits und Gebühren
- Nonces und Reihenfolge