Category: Ethereum & Smart Contracts

Ethereum, gas, accounts, signatures, tokens, NFTs, and decentralised applications.

  • Day 15 — What Actually Makes an App a dApp?

    Watercolor illustration of a user interface connecting a wallet to decentralized smart contracts

    What a decentralized application is

    A decentralized application, or dApp, is an app that uses blockchain-based rules instead of relying only on one company’s server.

    The screen may look like a normal website. However, the important actions connect to smart contracts.

    That is what makes a decentralized application different from a regular web app.

    The frontend still matters

    Most dApps still have a frontend. This is the page users see in the browser.

    The frontend helps users read information, choose actions, and connect a wallet.

    So, a decentralized application is not only smart contracts. It also needs a usable interface.

    The wallet replaces the login

    In many dApps, the wallet acts like the user account.

    The wallet signs messages and transactions. Then the blockchain can verify that the action came from the right user.

    This gives users more control, but it also creates more responsibility.

    Smart contracts hold the rules

    A smart contract is code that runs on a blockchain.

    For a decentralized application, smart contracts may manage tokens, lending, voting, swaps, or game items.

    Because the rules are public, users can inspect them. Still, public code can contain bugs.

    The takeaway

    A decentralized application combines a frontend, wallets, smart contracts, and on-chain state.

    It can be powerful because users interact with open rules. However, they must also understand fees, signatures, and contract risk.

  • Day 13 — Is Every Crypto Token Its Own Blockchain?

    Watercolor illustration of many tokens recorded inside one Ethereum smart contract

    Tokens do not always need their own blockchain

    Crypto tokens often live on an existing blockchain. Many do not have their own separate network.

    This surprises many beginners. A wallet may show many assets, but several can be smart contracts on Ethereum.

    So a token is usually a record managed by code.

    What a token contract does

    A token contract keeps track of balances. It knows how many units each address owns.

    It also defines transfer rules. When you send tokens, Ethereum runs the contract and updates those balances.

    No tiny token file travels through the internet. Instead, the contract changes its ledger.

    Why this is useful

    Creating a new blockchain is difficult. It needs validators, security, infrastructure, wallets, and users.

    Creating a token on an existing chain is easier. The token can use the security and tooling of that chain.

    Therefore, many projects launch tokens before they ever consider their own network.

    Coins versus tokens

    A coin usually belongs to the base blockchain. Bitcoin belongs to Bitcoin. Ether belongs to Ethereum.

    A token is usually built on top of a chain. For example, many stablecoins and governance tokens run as Ethereum token contracts.

    The takeaway

    Crypto tokens are often smart-contract records. They use an existing blockchain for settlement, security, and visibility.

    That is why one wallet can hold many assets without each asset having its own blockchain.

  • Day 11 — How Can a Wallet Prove It Is You Without a Password?

    A private wallet key creating a verifiable digital signature

    How a wallet proves it is you

    A crypto wallet does not prove your identity with a password. It proves control with a digital signature.

    This is an important shift. A blockchain does not need a private password database. Instead, it checks public cryptographic proof.

    Your wallet keeps the secret. The network checks the signature.

    Private key, public key, and address

    The private key is the sensitive part. It should stay secret forever.

    From that key, wallet software can derive a public key and an address. Other people can know the address safely.

    When you send crypto, your wallet signs the action. The signature proves that the private key approved it.

    Why the password comparison is misleading

    A normal app stores account access on a company server. If you forget your password, the company can often reset it.

    A crypto wallet is different. If you lose the recovery phrase, there may be no reset button.

    Therefore, self-custody gives control, but it also creates responsibility.

    What a signature protects

    A signature lets the network check permission. It also protects the private key from being revealed.

    That means a wallet can approve a transaction without sending its secret to the blockchain.

    The takeaway

    A crypto wallet proves control, not identity. The private key signs. The public network verifies. Then the blockchain updates the state.

  • Day 10 — Why Does Ethereum Charge Gas for Every Tiny Step?

    A measured gas meter limiting the computational work of Ethereum

    We now know that Ethereum nodes repeat the instructions inside a smart contract so that the network can agree on one result. That shared execution creates a new problem. Computation is not free. If anybody could ask every node to perform unlimited work, a careless program or an attacker could keep the network busy forever.

    Ethereum solves this with gas. Gas is a unit used to measure the amount of computational work a transaction requires. Adding two numbers costs a small amount. Reading or changing stored data costs more. Deploying a large smart contract may require much more. Gas is not a separate coin; it is the meter that counts the work, while the fee is paid in ether.

    Think of it like taking a taxi. Distance is not money, but it helps calculate the fare. In the same way, gas measures the journey through a program. A user sets a limit on how much gas the transaction may consume. If the contract finishes within that limit, unused capacity is not charged. If it runs out, execution stops so that the program cannot consume resources endlessly.

    The final fee also depends on what the network is charging for each unit of gas. When many people want their transactions included, block space becomes more competitive and fees can rise. A user can also offer an additional priority fee to encourage faster inclusion. This is why two identical actions performed at different times may cost different amounts.

    Gas protects the network, but it can surprise beginners. A transaction that fails may still consume a fee because nodes already performed work before discovering the failure. Paying for computation does not guarantee that the intended result will succeed; it pays the network for checking and executing the attempt.

    This system turns computation into a scarce resource and discourages spam. It also explains why developers try to write efficient contracts and why scaling Ethereum matters so much. Before we reach scaling, however, we need to understand who is authorising these paid instructions.

    When a website sees a password, it asks a company’s server whether the password is correct. Ethereum has no such account desk. So how can a wallet prove that a transaction truly came from you without sending a password to the network? The answer lies in digital signatures.

  • Day 9 — If Ethereum Is a Computer, Who Actually Runs It?

    Independent computers executing the same Ethereum Virtual Machine instructions

    Yesterday we described Ethereum as a blockchain that can hold both value and logic. That description sounds impressive, but it also hides a practical problem. A program cannot execute itself. On a normal website, code runs on a server owned by a company. If Ethereum has no central server, which computer actually runs a smart contract?

    The answer is not one special machine. Ethereum defines a small, standardised computing environment called the Ethereum Virtual Machine, usually shortened to the EVM. Developers write smart contracts and compile them into instructions that the EVM understands. Those instructions are stored on the blockchain along with the contract’s address and data.

    A useful way to imagine the EVM is as a calculator whose design has been copied onto thousands of computers. Give every copy the same starting numbers and the same operation, and each should produce the same answer. When someone sends a transaction to a smart contract, Ethereum nodes execute the relevant instructions and calculate the resulting changes. One node may be in Mumbai and another in London, but the rules of the virtual machine are the same.

    The result is a shared state. This state includes account balances, contract storage and other information that Ethereum currently recognises as true. A transaction proposes a change to that state. The network checks the signature, executes the contract, and agrees on the new result before it becomes part of a block. A person cannot simply change the answer on their own computer because their version would disagree with everyone following the protocol.

    For this agreement to work, the EVM has to be deterministic. The same input must always lead to the same output. A smart contract therefore cannot casually ask one computer for its local time, read a private file, or browse a website while it is running. Different machines might receive different answers. Contracts operate inside a controlled sandbox and can use only information supplied in a form the network can verify.

    This repetition sounds wasteful because many computers perform the same work. In one sense it is. Ethereum deliberately trades ordinary server efficiency for independent verification. The benefit is that no single server owner can secretly change the program’s result, switch off the database or rewrite a balance. The cost is that shared computation is scarce.

    That leads to the next question. If thousands of machines may need to check a computation, what prevents someone from submitting an enormous program or an infinite loop and making everybody work for free? Ethereum’s answer is a meter attached to every instruction: gas.

  • Day 8 — What If Money Could Follow Instructions?

    A smart contract running on a blockchain as a shared programmable agreement

    When money follows instructions

    Smart contracts make blockchain money programmable. They let value move only when certain rules are met.

    Bitcoin showed that money can move without a bank. Ethereum asked a bigger question. What if money could also follow logic?

    That idea turns a blockchain from a payment ledger into a shared computing platform.

    A simple example

    Imagine a small bet between two friends. A normal version needs trust. One person holds the money, or both trust a third person.

    A smart contract changes the setup. The rules can be written in code. Then the contract can release funds when the condition is met.

    In practice, real contracts need careful design. Still, the basic idea is simple. Rules can hold and move value.

    Why Ethereum matters here

    Ethereum was built for this broader kind of logic. It can store balances, run code, and update shared state.

    Because of that, developers can create tokens, lending apps, exchanges, games, and governance tools.

    However, the blockchain does not make every app safe. Bad code can still cause real losses.

    The trade-off

    Programmable money is powerful. It can remove some middlemen and create open financial tools.

    But it also adds complexity. Users must understand wallets, fees, approvals, and contract risk.

    Therefore, smart contracts are useful, but they are not magic.

    The takeaway

    A smart contract is a rule machine on a blockchain. It can hold assets and act when its conditions are met.

    That is the bridge from simple digital money to Web3 applications.