Anatomy of a blockchain transaction

miguel rubio
Carbonocom
Published in
2 min readJan 5, 2023

All the operations that happen on a blockchain (from a simple transaction to a more complex interaction with a smart contract) go through the same process:

1. A user triggers the operation. First, users need a wallet to interact with a blockchain. Wallets store and manage a user’s private and public keys:
- The public key is the user’s public address. It works like a street address or an email account. It is the human-readable, easier-to-remember information you would share to receive something: a package, an email, a phone call.
- Private keys are the unique alphanumeric code used in blockchain to make valid transactions. They work like a signature: they belong to a user, and they validate operations.
A private key is the most critical piece of information a user needs to take custody of their funds. Losing or forgetting the private key would mean that the user could no longer interact with a blockchain and, therefore, would be unable to retrieve the funds.

Example: Alice writes the transaction information (To: Bob Send: 1BTC), signs it with the private key through her wallet, and sends it to the blockchain.

2. Operations then enter the mempool: a waiting line where all operations from all different users wait for validators to pick them up and process them.

3. Validators take transactions from the mempool and bundle them in blocks: a finite list of operations launched by users. At this point, blocks are just suggestions, and transactions are not yet finished.

4. The block gets validated through a consensus mechanism. Different blockchains use different mechanisms: the most popular ones are Proof of Work and Proof of Stake.

5. The validated block is added to the blockchain, and the transaction is considered complete and immutable.

6. The new configuration of the blockchain is broadcast to all the network nodes. From this moment on, the information contained in each block becomes publicly accessible.

--

--