トランザクションのライフサイクル
署名からマイニングまで
「トランザクションのライフサイクル」はCoddyKit上の無料Web3 & DApp Development Fundamentalsレッスンです。 これはレッスン2/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはWeb3 & DApp Development Fundamentals学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Web3 & DApp Development Fundamentalsコースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
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.
よくある質問
「トランザクションのライフサイクル」レッスンは無料ですか?
はい。「トランザクションのライフサイクル」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Web3 & DApp Development Fundamentalsコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Web3 & DApp Development Fundamentalsコースには全4レッスンが含まれています。
「トランザクションのライフサイクル」で何を学びますか?
署名からマイニングまで ブラウザで直接実行するハンズオンコードでWeb3 & DApp Development Fundamentalsを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
Web3 & DApp Development Fundamentalsを始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのWeb3 & DApp Development Fundamentalsは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン2/4です。
「トランザクションのライフサイクル」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このWeb3 & DApp Development Fundamentalsレッスンでコードを書いて実行できますか?
はい。すべてのWeb3 & DApp Development Fundamentalsレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。
このコースのすべてのレッスン
- Gasとは
- トランザクションのライフサイクル
- Gas上限と手数料
- Nonceと順序付け