How a blockchain transaction works

To understand a blockchain transaction, it’s important to distinguish between the creation of an instruction, its propagation, and its final committal. The term “transaction blockchain” is sometimes used as a search term for the history of transfers, although it’s more accurate to refer to the transaction ledger on a specific blockchain.
Clicking the “Send” button doesn’t mean the transfer is complete. First, the wallet generates the data and creates a digital signature, then nodes propagate the transaction across the network. Before being included in a block, the transaction typically remains in the pool of unconfirmed transactions, and after inclusion, it receives confirmation or other finality status as stipulated by the protocol.
There is no single format for all blockchains. The Bitcoin blockchain tracks unspent outputs from previous records, while Ethereum, Polygon, and other EVM blockchains update account balances and execute program code. Transaction composition, fee calculation, and completion criteria depend on the rules of a specific protocol.
Table of Contents
What exactly is called a transaction?
A transaction is a structured set of data signed by the initiator’s private key and transmitted to nodes in the blockchain network. A transaction itself does not necessarily represent a monetary transfer. Calling a contract function, issuing a token, voting in a DAO, or storing a document hash can also be transactions.
A typical operation includes:
- recipient’s address or smart contract;
- amount, if native cryptocurrency is transferred;
- reference to the outputs being spent or the sender’s transaction number;
- commission limit and parameters;
- additional data for the smart contract;
- digital signature;
- An identifier by which the operation can be found in the browser.
The set of fields varies. For example, according to the official Ethereum transaction documentation , an instruction contains a nonce, destination address, value, input data, gas parameters, and signature. Bitcoin uses inputs, which reference previously created unspent outputs, instead of an account balance.
A transaction hash, or TXID, serves as a record identifier. For example, it is calculated from serialized data, so changing the signed information results in a different result. This identifier helps locate a record and verify its integrity, but it does not, by itself, confirm inclusion in a block or provide a separate security guarantee.
What does a transfer consist of in different accounting models?
In the wallet interface, transfers look the same: the user selects an asset, enters the recipient’s details, and enters the amount. On the blockchain itself, transfers can be structured using two fundamentally different models.
| Characteristic | UTXO model with unspent outputs | Ethereum and Polygon Account Model |
|---|---|---|
| What does the network take into account? | Unspent outputs from previous transactions | Current status of addresses and contracts |
| Where do the funds come from? | A new operation consumes one or more UTXOs. | The amount is debited from the account balance. |
| How is the remainder returned? | A separate exit for change is created | The balance remains in the account |
| Protection from duplicate execution | One UTXO cannot be spent twice. | A sequential nonce is used. |
| What does the commission depend on? | First of all, it depends on the virtual record size and the rate per vByte | From the volume of calculations in gas and the price per unit of gas |
| Complex logic | Limited Bitcoin Scripts | Calling smart contract functions |
How the UTXO model works
In Bitcoin, a wallet displays the usual balance, but the protocol doesn’t store a ready-made record such as “there is 1 BTC at the address.” The balance is calculated as the sum of UTXOs—the outputs of previous transactions that haven’t yet been spent and whose spending conditions can be met by the key holder.
Let’s say a user received 0.3 BTC and 0.7 BTC in two transfers. These are two separate UTXOs. To send 0.8 BTC, the wallet can use both outputs in full, creating one new output for 0.8 BTC for the recipient and a second one with change for the sender. The difference between the sum of the inputs and all new outputs constitutes the fee.
Each transaction references specific previous outputs. Full nodes verify that they exist, haven’t already been spent, and that the specified spending conditions are met. The Bitcoin developer guide describes standard scenarios in which ownership of a UTXO is confirmed by a key and a digital signature.
How the account model works
In Ethereum and compatible networks, an address has state: the balance of the native coin, the nonce, and, for contracts, the program code and storage. A simple operation decreases the sender’s balance and increases the recipient’s balance. A contract call can modify multiple state records at once.
A nonce is the sequential number of an outgoing transaction for a specific account. If a confirmed transaction had a nonce of 14, the next one should typically have a nonce of 15. This numbering system establishes the order of execution and prevents the same signed instruction from being reproduced.
Transferring ERC-20 tokens is technically different from sending native coins. The user calls a function on the token contract, and the contract modifies its internal balance register. This type of transfer requires the native coin of the corresponding blockchain, as this is used to pay for gas.
How a transaction gets into a block
The transaction path consists of sequential verifications. While the individual details vary, the overall process is similar across most public blockchains.
1. The wallet generates instructions
The user specifies the network, asset, destination address, and amount. The wallet selects the UTXO or supplies a nonce, estimates the fee, and generates the data. At this stage, the instruction exists locally and does not yet change the blockchain state.
The address must be verified before signing. The blockchain doesn’t determine whether the string belongs to the intended recipient, and a format-compatible address may turn out to belong to a different recipient. A separate danger is choosing the wrong network: identical addresses don’t guarantee that the exchange or wallet will support the incoming asset.
2. The private key creates a signature
The wallet signs the data with a private key. The digital signature allows nodes to verify that the key owner authorized the transaction and that the fields have not been modified since the signature. The private key is not transmitted to the network.
A signature doesn’t encrypt the transfer. Public blockchains typically contain publicly viewable addresses, amounts, and service information. While a public record doesn’t automatically reveal the owner’s identity, the wallet’s ownership can be determined based on exchange data, publications, and transfer history.
3. Nodes receive and distribute the record
The wallet sends the signed transaction to its node or RPC provider. The receiving node verifies the format, signature, UTXO or balance availability, nonce validity, and other protocol rules. The valid transaction is then propagated to other nodes.
In many blockchains, this transaction goes into the mempool—a local queue of unconfirmed transactions. The mempool isn’t a single server: each node maintains its own set of pending transactions, which means the queue contents may vary across nodes. Bitcoin’s P2P documentation explicitly states that unconfirmed transactions don’t have a permanent status and are stored in node memory.
4. The block creator selects transactions
In Proof of Work, a block is formed by a miner, while in Proof of Stake, it is formed by a validator or block proposer appointed by the protocol rules. The validator selects transactions that comply with the rules and fit within the established limit.
A high fee often increases priority, but it doesn’t guarantee it. Transaction dependencies, nonces, local node policies, and protocol-specific requirements can all influence the order. Bitcoin miners typically compare fees in SAT/vByte, while EVM network validators consider gas parameters and the available block limit.
5. The network verifies the block
The created block is transmitted to other nodes. Each node independently verifies the transactions, the block’s validity, and its relationship to the previous history. If the block complies with the consensus rules, it becomes part of the accepted chain.
In Bitcoin, a block header contains the hash of the previous block, and transactions within the block are represented through the root of the Merkle tree. Changing this information alters the cryptographic relationships and would require rewriting the subsequent history in competition with the rest of the network. It is the combination of hashes, distributed verification, and consensus, rather than hashing alone, that makes rewriting history practically difficult.
What do the statuses and confirmations mean?
An unconfirmed transaction may already be known to blockchain participants, but it has not yet been committed to the accepted chain. A confirmed transaction is recorded in the ledger, and its degree of finality depends on how the specific protocol resolves temporary competing branches.
| Status | What happened? | Practical significance |
|---|---|---|
| Created | The wallet has generated the data | The network may not yet know about the operation. |
| Signed | Digital signature added | The recording is ready for transmission. |
| Pending / in the mempool | The nodes have accepted the record, but there is no block yet. | The translation may be delayed, replaced, or removed from the mempool. |
| Included in the block | The operation received its first confirmation. | The risk of reorganization has decreased, but has not always disappeared. |
| Finalized | The criterion for finality of the protocol has been reached | Cancellation would require a consensus violation or a critical attack. |
| Rejected | The check found an error | The network status has not changed |
| Executed with an error | A valid EVM transaction was included in the block, but the contract call failed. | The transfer or call is cancelled, but the calculation fee is usually retained |
In Bitcoin, the first confirmation occurs when a transaction is included in a block. With each subsequent block, the number of confirmations and the record depth increase, making the transaction less vulnerable to reorganization. The recipient determines the acceptable threshold based on the amount and risk; six confirmations is a common benchmark, not a universal protocol requirement for all payments. The Bitcoin payment processing guide recommends assessing risk especially carefully for transactions without confirmations.
In Ethereum’s Proof of Stake, the number of blocks alone is insufficient to fully describe the status. A block can be sequentially justified and finalized. According to the Gasper mechanism , finalization requires a supermajority vote of staked ETH and should not be confused with Bitcoin’s probabilistic confirmations.
How is the commission calculated?
The fee is a payment for limited network resources and, at the same time, an economic defense against spam. Its size is related not so much to the cost of the transfer, but to the volume of data, computation, and current demand for block space.
In Bitcoin, multiple inputs and outputs increase the virtual transaction size. For the same vByte rate, a complex transaction with multiple UTXOs will be more expensive than a simple one, even if the former transfers a small amount and the latter a large one. The fee is equal to the difference between the sum of inputs and the sum of outputs.
In EVM networks, the fee depends on the actual gas used and the price per unit of gas. A simple transfer of a native coin requires less computation than an exchange through multiple contracts. In Ethereum, the base fee is determined by the protocol and burned, with the priority portion going to the validator; the detailed formula is provided in the official gas guide .
A fee that’s too low can lead to long waits, and last year’s recommendations disregard current workloads and updated protocol rules. In Bitcoin, a compatible transaction is sometimes replaced with a higher-fee version via Replace-by-Fee if the sender has pre-authorized such a replacement. In EVM networks, a pending transaction can be replaced with another one with the same nonce and more attractive fee parameters. This isn’t a reversal of a confirmed transfer, but a competition between two unconfirmed instructions, of which the network will execute one.
What types of transactions are there?
There’s no single, universal classification: a single operation can simultaneously transfer tokens, invoke multiple contracts, and contain data. It’s more useful for users to differentiate transactions by their outcome.
| Transaction type | What’s changing? | Example |
|---|---|---|
| Simple translation | Coin control or native asset balance | Sending Bitcoin or ETH |
| Token transfer | Token contract status | ERC-20 transfer on the Polygon network |
| Calling a smart contract | Variables and balances of one or more contracts | Exchange on a decentralized exchange |
| Contract deployment | New software code appears online | Token issuance or application launch |
| Multi-signature operation | Funds are spent after a specified number of approvals | 2-of-3 Scheme for Team Wallet |
| Batch operation | One instruction creates multiple translations or calls | Payout to multiple addresses |
| Data transaction | A message or hash is recorded in the registry | Confirmation of document existence |
Multisig is more accurately thought of as an authorization method rather than a completely independent type of transaction. An atomic swap also represents not a single universal record, but an agreed-upon set of conditions across two networks: either both parties receive the assets, or, after the expiration date, they can return the original funds.
A smart contract expands the capabilities of blockchain technology and related payment technologies, but adds a separate execution risk. A valid signature proves the sender’s authority, but does not guarantee the absence of errors or malicious logic in the invoked code.
How to check a transfer and understand the reason for the delay
You can verify a transaction using the explorer for the network it was sent on. The transaction hash is used for searching, or less commonly, the wallet address. The explorer displays the status, block, fee, addresses, contract events, and the number of confirmations.
If the record is not found, first ensure the correct blockchain is selected. A wallet or exchange may show an internal withdrawal ID that is not the on-chain hash. A missing TXID sometimes means the service has not yet sent the transaction to the network.
The pending status is usually due to one of four reasons:
1. The offered fee has become non-competitive;
2. The operation is waiting for a previous transaction from the same address;
3. Nodes have removed the entry from the mempool or stopped distributing it;
4. The wallet, RPC provider, or interface is showing outdated data.
If a contract call fails, the explorer may display a block entry with the “failed” status. In this case, the state change is rolled back, but the computing resources used are still paid. A complex operation should not be repeated without identifying the cause: the problem could be an insufficient gas limit, a changed price, a missing token, or the logic of the contract itself.
Before sending, you should verify the network, recipient details, asset, and fee in your wallet interface. For larger amounts, conduct a small test transfer. A private key or seed phrase is not required to verify the status: a request for this information by the explorer indicates fraud.
What does understanding the mechanics of a transaction provide?
Blockchain doesn’t transfer digital coins between devices. It accepts a signed instruction, verifies the right to change the ledger, and agrees on a new state between nodes. In Bitcoin, this results in a new set of UTXOs, while in an account-based network, balances, nonces, and contract data are changed.
The practical meaning of this mechanism is to separate three distinct events: the wallet creates a transaction, the network accepts it, and the blockchain finally records the result. While the transaction is in the mempool, the recipient assumes risk. Once included in a block, the risk is reduced, and the required level of finality is determined by the network, the amount, and the rules of the receiving service.
The user doesn’t need to manually calculate signatures or assemble a block. They only need to verify the details before confirming them in the wallet, store the TXID, and evaluate the status using a suitable browser. Irreversibility protects the blockchain’s history, but also makes the sender’s error their own responsibility.