Skip to content
Reading depth

Each view includes the earlier layers; the complete engineer or auditor page is shown by default.

A transaction is an authorized request to change blockchain state, and gas meters the computation and storage resources that executing it consumes.

Circle category cue

A transaction asks the network to apply an authorized state change; gas puts a measured limit and price on the resources used to evaluate that request.

A shared state machine needs an ordered unit of work with an identifiable sender, replay protection, and a resource bound. Without metering, one caller could demand unbounded computation from every validating node. Fee markets also help allocate scarce block capacity when many users want execution at once.

A payment instruction plus a metered processing fee is a useful analogy. The comparison ends because one transaction may call several programs, create and repay debt, exchange assets, and either commit all successful state changes or revert them together. Fees can still be consumed when execution reverts because the network performed the attempted work.

The sender authorizes the request. A block builder, sequencer, or validator orders it. Recipient contracts interpret its data. The sender may transfer a native asset or tokens and separately pays the network’s fee asset. A pending signed request is not a settled financial claim; a receipt is execution evidence whose confirmation and finality still need evaluation.

  1. The wallet encodes destination, value, data, chain context, replay fields, fee parameters, and a gas limit.
  2. The account’s authorization mechanism signs or validates the request.
  3. The network admits and orders the request according to its rules.
  4. Execution consumes gas as operations run and either commits the resulting state or reverts state changes.
  5. A receipt records outcome and gas use; later consensus establishes the application’s required confirmation or finality state.

For an Ethereum-style transaction, the execution fee is:

transactionFeeNative = gasUsed × effectiveGasPriceNativePerGas

gasUsed is a count of gas units. effectiveGasPriceNativePerGas is native asset per gas unit, commonly quoted in gwei per gas on Ethereum. Their product is native asset. The sender’s gas limit is a maximum resource budget, not a promise that all of it will be spent. Other chains may meter and price execution differently.

Capital flow follows transferred value and paid fees. Claim flow follows any shares, debt, receipts, or rights created by called contracts. Information flow includes calldata, ordering, status, and receipts. Control flow begins with the signer and continues through every called authorization rule. Return flow sends user-paid fees to validators, sequencers, builders, or treasuries under network rules; issuance-funded rewards expand supply and dilute other holders unless another mechanism offsets them. Execution itself creates no investment return. Risk flow follows bad parameters, unexpected code paths, ordering, congestion, and finality.

Transaction execution itself does not produce investment return. Validators, sequencers, builders, or protocol treasuries may receive fees; the sender pays them. Bad destinations, approvals, calldata, ordering, or fee assumptions can make the sender or affected protocol users absorb loss.

“Sent,” “included,” “successful,” and “final” are different statements. Check the destination and effect before signing, then inspect the receipt rather than assuming a transaction succeeded because it has a hash.

Monitor nonce policy, fee caps, replacement behavior, deadlines, slippage, allowances, simulation coverage, private or public order flow, chain ID, confirmation thresholds, and operational retry rules. A blind retry can create a second economic action even when byte-for-byte replay is blocked.

Ethereum transactions carry fields such as recipient, nonce, value, input data, gas limit, and fee parameters. Ethereum gas schedules charge for EVM work, and the base-fee and priority-fee mechanism is specific to that protocol. Never copy its units or success semantics into a different execution environment without checking that chain’s primary specification.

Review signature validation, chain and replay domains, nonce lifecycle, gas bounds, revert behavior, allowance effects, fee arithmetic, receipt status, and finality. Ensure callers distinguish an out-of-gas or reverted request from a committed state change.

  • “A transaction hash means success.” It only identifies a submitted request; inspect inclusion, status, and finality.
  • “Revert means free.” State can revert while resource fees remain paid.
  • “Gas is a token.” Gas is a resource unit; a chain’s native asset pays the fee denominated from those units.

Read blockchain and wallets and keys first. Continue to smart contracts to see how calldata selects programmable rules.

  • Ethereum.org, Transactions — Ethereum transaction fields and lifecycle (accessed 2026-08-09).
  • Ethereum.org, Gas and fees — Ethereum resource metering and fee arithmetic (accessed 2026-08-09).
  • The supplied DeFi seed, sections 2, 12, and 14 — execution, control, and blockchain-learning questions.

Machine-readable model

Key equations

Canonical expressions come from the structured concept record. KaTeX renders the notation, while the plain-text expression and variable table keep its meaning and units inspectable without JavaScript. Read the narrative above for the model's domain, assumptions, and rounding rules.

  1. Equation 1

    Plain-text equation: transactionFeeNative = gasUsed × effectiveGasPriceNativePerGas

Assurance contract

Security properties

These structured statements define desired behavior. Their stable IDs can bind tests, invariants, specifications, audit findings, or proof results without turning descriptive review advice into an assurance claim.

Desired · not evaluated: No test, audit, or proof result is implied until scoped evidence is linked to this property.

  1. Only a valid authorization for the sending account can create an accepted transaction

  2. Nonce and replay-domain rules prevent unintended duplicate execution

  3. Resource consumption never exceeds the sender's explicit gas limit

  4. A receipt distinguishes inclusion, execution success, and finality rather than treating them as one state

Knowledge check

Quiz

Answer in your own words, then open the model answer.

Why can a reverted transaction still cost a fee?

Model answer

Validators performed computation before the revert, so the resource meter charges for that work even though the failed call's state changes do not persist.