What Is a Smart Contract and How Does It Work? (2026)
How smart contracts work on a blockchain, what gas and oracles do, real examples, and the dated hacks that show their limits.
Short answer: A smart contract is a program stored on a blockchain that runs exactly as written when someone sends it a transaction, with every node reaching the same result. As of December 2026, DeFi protocols’ smart contracts hold roughly $63.5 billion in locked value (DefiLlama, December 3), yet bugs and stolen keys still cause large losses.
Updated December 4, 2026.
Key takeaways
- A smart contract is code plus data living at an address on a blockchain. Users interact with it by submitting transactions that execute a function defined in the contract, and by default it cannot be deleted and interactions with it are irreversible.
- Execution is deterministic: given the same circumstances, the contract produces the same result. That is what lets thousands of nodes verify it independently, and it is also why contracts cannot fetch outside data on their own and need oracles.
- Gas is the price of computation. The fee is units of gas used times the base fee plus the priority fee, and the base fee is burned while the priority fee goes to the validator. Ethereum’s block gas limit is 60 million, and the Glamsterdam upgrade is set to reach the Hoodi testnet on December 15, 2026 with a 200 million limit.
- Audits help but do not guarantee safety. Balancer v2 lost $128.64 million across six chains on November 3, 2025 through a rounding flaw in its pool math, and its site listed audits by OpenZeppelin, Trail of Bits, Certora and ABKD.
- Code bugs are only part of the loss picture. TRM Labs counted a record 207 hacks in the first half of 2026 with about $972 million lost, and roughly 76 percent of the money lost came from infrastructure and operational compromises such as stolen keys, not from contract logic alone.
Who this is for: Beginners, founders, treasurers and anyone who signs transactions with a crypto wallet and wants to understand what a smart contract is, what it can and cannot do, and how to judge the risk before using one. No coding knowledge is assumed.
The phrase “smart contract” is older than Bitcoin. Computer scientist Nick Szabo coined the term, writing an introduction to the concept in 1994 and an exploration of what smart contracts could do in 1996. His best-known metaphor is the vending machine: specific inputs guarantee predetermined outputs. Blockchains made the idea practical, because a shared ledger that nobody controls can host a program that nobody can quietly change or switch off.
That matters in December 2026 because smart contracts now sit under a large share of crypto activity. Exchanges that trade without an order book, lending markets, stablecoins, DAO treasuries and tokenized assets are all smart contracts. They are also where some of the industry’s costliest failures happen. This guide explains the mechanism first, then the money flows, then the failures, using dated incidents rather than slogans.
You will learn what a smart contract is, how it runs step by step, why gas exists, how oracles feed contracts real-world data, what real contracts do today, how The DAO, Mango Markets, Cetus, Balancer and other incidents went wrong, and what an audit does and does not prove. It includes a worked example of a gas bill and a simplified reentrancy attack, a timeline, and a checklist. This is education, not financial, legal or tax advice.
Hear it from the builders: Reading about contracts is one thing; hearing teams explain how they design, test and secure them is another. Browse founder interviews on smart contract platforms and DeFi at the Crypto Coin Show Interview & Founder Hub.
Smart contracts by the numbers
What is a smart contract?
On Ethereum, a smart contract is a program that runs on the blockchain, and it is a type of Ethereum account. It is a collection of code (its functions) and data (its state) that sits at a specific address. Because it is an account, it can hold a balance and be the target of transactions. Anyone can write a smart contract and deploy it to the network, and because contracts are public, they work like open APIs that other contracts can call. That composability is why DeFi products are often described as “money legos”.
The name is misleading in two ways. A smart contract is not necessarily smart: it does only what its code says, including when the code is wrong. And it is not automatically a legal contract. A court decides whether an agreement is legally binding, and the answer depends on the jurisdiction and the facts. What the code does provide is automatic enforcement of its own rules. Traditional contracts rely on humans to interpret and carry them out, which leaves room for ambiguity, while a smart contract executes only the conditions in its code.
Smart contract vs traditional contract vs ordinary app
| Feature | Smart contract | Traditional legal contract | Ordinary web app backend |
|---|---|---|---|
| Where the rules live | Code on a public blockchain | Written legal text | Code on a company’s servers |
| Who enforces it | The network runs the code automatically | Parties, then courts if disputed | The company operating the server |
| Can the operator change it? | Not by default; only through a built-in upgrade path | By agreement of the parties | Yes, at any time |
| Can you inspect it? | Usually yes, if the source is published and verified | Yes, but interpretation may be disputed | Rarely |
| Can a mistake be reversed? | Generally no; transactions are final | Sometimes, through courts or negotiation | Often, by the operator |
| Main failure mode | Bugs, bad data, compromised admin keys | Disputes, non-performance | Outages, insider or server compromise |
Sources: ethereum.org smart contract documentation; CCS analysis.
How do smart contracts work, step by step?
The life of a contract has five stages. The detail below uses Ethereum because it is the reference design, but other chains follow the same pattern with different languages and virtual machines.
- Write. A developer writes the logic in a contract language. Solidity is the best-known, and its compiler turns the code into Ethereum Virtual Machine bytecode.
- Deploy. The bytecode is sent to the network as a transaction and given its own address. After that, the code is stored on-chain for anyone to call.
- Call. A user or another contract sends a transaction naming a function and its inputs. Any user can call the contract to execute its code, for a fee paid to the network.
- Execute. Each node runs the contract as part of the block creation process. Because every node runs the same code on the same starting state, they all reach the same new state. How validators agree on blocks is covered in our guide to how blockchain consensus works.
- Record or revert. If every step succeeds, the changes (balances, ownership, votes) are written to the chain. If any step fails, the whole transaction is undone, so a contract never ends up half-executed. The fee for the work done is still charged.
What does deterministic execution mean?
Deterministic means the same inputs and the same starting state always produce the same output. One summary of Ethereum’s design puts it as: the EVM makes execution deterministic, and gas makes computation governable. Determinism is not a nice-to-have. If two nodes ran the same transaction and got different answers, the network could not agree on the ledger.
That constraint shapes what contracts can do. They cannot open a web page, read a weather report or check a stock price on their own, because the answer might differ between nodes or between moments in time. They also have no true randomness without extra machinery. Anything from outside the chain has to be delivered to the contract as an input, which is the job of oracles, covered below.
Which blockchains run smart contracts?
| Platform | Typical language | Execution environment | Notes |
|---|---|---|---|
| Ethereum and EVM chains | Solidity, Vyper | Ethereum Virtual Machine | The reference design; many layer 2 networks reuse it (see our guide to Ethereum layer 2s) |
| Solana | Mostly Rust | Sealevel parallel runtime | Transactions declare accounts in advance so unrelated ones run in parallel |
| Sui | Move | Move virtual machine | Resource-oriented language; Cetus, below, was written in it |
| Bitcoin | Script (limited) | Bitcoin script interpreter | Deliberately restricted; not designed for general-purpose contracts |
Sources: ethereum.org; BlockSec and Cyfrin analyses of the Cetus incident; CCS analysis. The language does not decide the safety: analysts noted that Move is often called safe by default, yet the Cetus exploit showed that security is not a property of a language.
What is gas, and why do smart contracts cost money to use?
On Ethereum each computational action has a set gas price, and your gas fee is the total cost of the actions in your transaction. Gas does two jobs. It pays the network for the work, and it stops anyone from spending the network’s resources for free, for instance by running an endless loop. When a transaction runs out of gas, it is reverted, and the fee is still lost.
The price per unit of gas has two components, the base fee and the priority fee (tip). The base fee is determined by the blocks before it, which makes fees more predictable, and it is burned when the block is created. The priority fee goes to the validator who proposed your transaction. More complex actions, like interacting with a smart contract, use more gas than simple ones. A plain ETH transfer needs only 21,000 units of gas, so a contract call that updates several balances costs a multiple of that. The worked example below puts numbers on it.
There is also a limit per block. Ethereum’s current block gas limit is 60 million, which caps how much computation fits in each block. The limit was already increased to 60 million, and the Glamsterdam upgrade, scheduled for the Hoodi testnet on December 15, 2026, raises it to 200 million at activation. That date follows a delay: developers postponed it to security-review two proposals, EIP-8037 and EIP-8038, which reprice gas for certain operations. A mainnet date had not been confirmed as of this writing. If gas costs for some operations shift, contracts that assume the old costs could behave unexpectedly, which is a good illustration of how deeply gas is built into contract design.
Other chains price computation differently, and rollups add their own data-posting costs on top; our guide to Ethereum layer 2s explains why a contract can be cheaper to use on a rollup than on Ethereum’s base layer. As of December 3, 2026, one large layer 2, Base, held $4.144 billion in DeFi value locked.
What is an oracle, and why do smart contracts need one?
An oracle is a service that delivers off-chain data, such as an asset price, to a smart contract. Since a contract cannot look outside the chain, a lending protocol that needs to know whether your collateral is worth more than your loan must be fed a price. The contract trusts that number completely, so the oracle becomes part of the security model. This is sometimes called the oracle problem: a trustless contract is only as trustworthy as the data it consumes. Decentralized oracle networks such as Chainlink aggregate many sources to reduce that risk; our guide to Chainlink explains how.
A real oracle failure: Mango Markets, October 11, 2022
Mango Markets was a Solana-based trading and lending platform. According to the US Attorney’s Office for the Southern District of New York, its oracle calculated the relative value of two cryptocurrencies by looking at exchange rates on various exchanges. The CFTC alleged that on October 11, 2022 the defendant misappropriated more than $110 million in digital assets from Mango Markets through oracle manipulation. Prosecutors said that by artificially raising the value of perpetual futures he had bought from himself, he could borrow and withdraw about $110 million of other depositors’ cryptocurrency. The indictment was filed on January 9, 2023; these are allegations, and the case’s later court history is on the public record, which readers should check directly.
The contract did exactly what it was told. The weakness was that its price input could be pushed by one trader buying a thinly traded token. Common defenses include using several independent price sources, averaging prices over time, capping how much can be borrowed against a single volatile asset, and pausing the market when prices jump abnormally.
What are real smart contract examples?
Smart contracts can do essentially anything that computer programs can do. The uses that carry real money today are:
- Stablecoins. Token contracts keep the balances and rules for dollar-pegged coins. DefiLlama showed about $278.17 billion in stablecoins across all chains as of December 3, 2026. See what is a stablecoin for how reserves and pegs work.
- Decentralized exchanges. Automated market makers hold pools of two tokens and price swaps with a formula. DefiLlama recorded about $10.58 billion of DEX volume in 24 hours as of December 3, 2026.
- Lending and borrowing. Deposits sit in a contract that lends them out against collateral and liquidates loans automatically if collateral falls too far, using oracle prices. Our guide to DeFi TVL explains how to read the headline number.
- Multisig wallets and DAOs. Multisig contracts are accounts that require multiple valid signatures to execute a transaction, and they can be used for simple DAO governance. Treasuries and votes in larger DAOs run on the same principle.
- Token sales, vesting and escrow. In 2017, new blockchain projects raised billions from initial coin offerings through Ethereum smart contracts. Today the same pattern appears as vesting schedules that release tokens to teams and investors over time, and as escrows that hold funds until a condition is met.
- NFTs, tokenized assets and payments. A contract records who owns each item, whether it is art, a ticket, a bond or a share, and enforces the transfer rules.
One caution on scale: TVL is a measure of assets deposited in contracts, not of profit or usage, and it moves with token prices. Treat any single snapshot, including the $63.5 billion above, as a point in time.
Can smart contracts be hacked? Real, dated incidents
Yes, and the incidents fall into a few repeating patterns. Contract exploits are one cause of crypto theft, not the only one. Chainalysis recorded over $3.4 billion stolen in 2025, with the February 2025 Bybit compromise alone accounting for $1.5 billion. For 2026, TRM Labs counted 207 hacks in the first half, with about $972 million lost; smart-contract exploits were most incidents, but infrastructure and operational compromises caused roughly 76 percent of the money lost. Our guide to crypto wallets and self-custody covers the key-management side, including what the Bybit theft taught.
Incident table
| Incident | Date | Reported loss | What failed |
|---|---|---|---|
| The DAO | June 17, 2016 | About 3.6 million ETH | Reentrancy bug in the withdrawal logic |
| Mango Markets | October 11, 2022 | More than $110 million | Oracle price manipulation |
| Cetus (Sui) | May 22, 2025 | About $223 million | Faulty overflow check in math code |
| Balancer v2 | November 3, 2025 | $128.64 million | Rounding error in pool invariant math |
| Truebit | January 8, 2026 | $26.2 million | Integer overflow in a legacy contract |
| Drift (Solana) | April 1, 2026 | Over $280 million, per one incident tracker | Reported as an access-control failure |
| Kelp DAO bridge | April 18, 2026 | About 116,500 rsETH, around $292 million | Cross-chain bridge compromise |
Sources: The Block, Check Point Research, BlockSec, CFTC and DOJ filings as reported by Jones Day and the US Attorney’s Office, Chainalysis via Blockchain.News, CCN and SmartContractsHacking. Loss estimates differ between trackers, and the Drift figure in particular is reported at different levels by different sources.
Pattern 1: Reentrancy (The DAO, 2016)
The DAO was a crowdfunded investment fund built as a smart contract. On June 17, 2016 an attacker exploited a reentrancy bug in its splitDAO function, repeatedly draining ether before the contract could update its balances. The contract first sent the ether and only then updated the internal token balance, and the developers had not considered the possibility of a recursive call. Roughly 3.6 million ETH, about a third of the fund, ended up in a “child DAO” with a 28-day withdrawal lock, which bought time. On July 20, 2016, at block 1,920,000, the network executed a hard fork that rolled the state back, with roughly 85 to 89 percent of voters in support. The fork split the chain into Ethereum and Ethereum Classic, and the “code is law” debate has never fully gone away. The rare intervention of a hard fork is not a safety net you can plan around.
Pattern 2: Math and logic errors (Cetus, Balancer, Truebit)
Modern DeFi contracts do heavy arithmetic, and small errors can be worth hundreds of millions. At Cetus, the root cause was a faulty overflow check in a u256 math utility, which treated some values that should have aborted as safe. Attackers used it to mint fake liquidity and drain multiple pools on May 22, 2025. Cetus’s own post-mortem blamed a bug in an open-source library used in the platform’s smart contracts. Sui validators froze the attacker’s wallets, locking approximately $162 million of the stolen funds, an intervention that some users welcomed and others saw as a sign that the chain’s validators can override outcomes.
Balancer shows the same lesson with rounding. The attacker exploited arithmetic precision loss in pool invariant calculations to drain $128.64 million across six networks in under 30 minutes. Several Balancer forks were also affected, because copied code copies its bugs; Berachain’s native exchange, built on the same codebase, was among them. Truebit is a third example: on January 8, 2026 it lost $26.2 million to an integer overflow in its bonding curve mechanism. Chainalysis found $36.7 million lost across four exploits of unverified contracts from December 2025 to June 2026, a reminder that publishing and verifying source code is part of the defense, and that attackers are using AI tools to speed up the search for flaws.
Pattern 3: Keys, access control and approvals (Drift, Kelp, Bybit)
Some of the largest losses involve who is allowed to call a function, not a bug in the function. One 2026 summary describes the Drift incident as a case where a single signer with unlimited market creation and oracle assignment authority was able to drain $213 million in 10 seconds, which is a different estimate from the figure in the table above. The Kelp DAO loss came through its LayerZero-powered bridge on April 18, 2026. In each case the contract executed valid instructions from someone who held the right permissions. Users face a related risk when they approve a contract to spend their tokens: among 2026 incidents tracked by CCN, a SwapNet flaw let an attacker invoke arbitrary calls and drain unlimited token approvals. Our guide to wallet drainers and blind signing shows how a single signature can do that.
Do audits make a smart contract safe?
No. An audit is a time-boxed review of a specific version of the code by an outside security firm. A good one finds real bugs and is worth having. It does not prove the absence of bugs, it does not cover later changes, and it usually does not cover the project’s admin keys, oracle choices or economic design.
Balancer is the clearest case. Its website listed full audits of its v2 contracts by OpenZeppelin, Trail of Bits, Certora and ABKD, and the exploit still happened. Audits cut risk; they do not transfer it. The measures that complement them include:
- Multiple independent reviews and formal verification, which mathematically checks specific properties of the code.
- Public, verified source code, so anyone can inspect what is deployed.
- Bug bounties, which pay researchers to report flaws instead of exploiting them.
- Limits and circuit breakers, such as caps on deposits and automatic pauses when behavior looks abnormal.
- Timelocks and multisig control over upgrades, so no single person can change the rules instantly.
Upgradeability cuts both ways. A contract that cannot be changed cannot be patched, which is why serious bugs can be unfixable. A contract that can be changed by an admin key can be fixed, but the key becomes a target. Neither is risk-free; you simply choose which risk you take.
How did smart contracts get here? A timeline
Timeline sources: ethereum.org; The Block; Blockscout; Jones Day; Chainalysis; Cetus post-mortem as reported by CryptoNewsDesk; Check Point Research; Crypto Briefing.
Worked example: a gas bill and a simplified reentrancy attack
Part A: what a transaction costs. The base fee and tip values below come from the example in Ethereum’s documentation: an ETH transfer uses 21,000 gas, the base fee is 10 gwei, and the base fee of 0.00021 ETH is burned. The tip is set at 2 gwei, as in that example. The contract call uses an assumed 100,000 gas, a round number for illustration, not a measured cost. 1 gwei is one billionth of an ETH.
- Plain transfer. 21,000 gas times 10 gwei is 210,000 gwei (0.00021 ETH), which is burned. The tip is 21,000 times 2 gwei, or 42,000 gwei (0.000042 ETH), which goes to the validator. Total: 252,000 gwei (0.000252 ETH).
- Contract call. 100,000 gas times 10 gwei is 1,000,000 gwei (0.001 ETH) burned. The tip is 200,000 gwei (0.0002 ETH). Total: 1,200,000 gwei (0.0012 ETH).
- If it fails. A reverted transaction undoes its state changes, but the gas used before the failure is still charged.
| Action | Gas used | Burned base fee | Validator tip | Total |
|---|---|---|---|---|
| Plain ETH transfer | 21,000 | 0.00021 ETH | 0.000042 ETH | 0.000252 ETH |
| Contract call (assumed 100,000 gas) | 100,000 | 0.001 ETH | 0.0002 ETH | 0.0012 ETH |
Part B: reentrancy with round numbers. This is a simplified model of the pattern behind The DAO, not the DAO’s actual code. In the standard textbook version, the contract still believes the attacker has a balance because it has not yet updated it, so it pays again, and the attacker ends up with far more than was deposited.
- Setup. A vault holds 90 ETH deposited by other users. An attacker deposits 10 ETH, so the vault holds 100 ETH and owes the attacker 10.
- Flawed logic. The withdraw function sends the ETH first and sets the attacker’s balance to zero afterwards.
- The loop. When the vault sends 10 ETH, the attacker’s contract automatically runs code that calls withdraw again. The balance still reads 10, so the vault sends another 10.
- Result. After 10 loops the vault holds 0 ETH. The attacker received 100 ETH for a 10 ETH deposit, a net gain of 90 ETH that belonged to other users. Real attacks are bounded by gas, since extra ether is transferred multiple times only within an iteration bound.
- The fix. Reentrancy can be prevented by committing state-changing logic before ether is sent out through an external call. Set the balance to zero first, then send. A reentrancy lock adds a second layer.
Takeaway: the vault never malfunctioned in a technical sense. It followed its instructions exactly, which is both the promise and the danger of smart contracts.
How can I check whether a smart contract is safer to use? A checklist
- Is the source code published and verified on a block explorer? Closed or unverified code is a red flag; Chainalysis tied $36.7 million of losses to unverified contracts in just four exploits.
- Who can change the contract? Look for an upgrade proxy, an admin or owner role, a pause function and who holds those keys. A multisig with a timelock is stronger than a single key.
- What did the audits cover, and when? Check the date, the scope and whether the code has changed since. Several audits do not mean zero risk, as Balancer showed.
- What data does it depend on? Find the oracle. Ask whether the price comes from several sources, whether it can be moved cheaply, and what limits apply to thinly traded assets.
- Has this code been copied? Forks inherit bugs. When Balancer was exploited, several forks were also affected.
- How long has it been live, and how much does it hold? Time in production and large balances that have not been attacked are weak but real evidence. New code with a large balance is not.
- What are you approving? Read the signing request. Approve only the amount you need and revoke old approvals; see our guide to wallet drainers and blind signing.
- Is there a bug bounty and an incident plan? Projects that pay researchers and publish post-mortems tend to handle problems better.
- Can you afford to lose what you deposit? Start small, and never put in more than you can lose. This is education, not financial advice.
What are the limits and risks of smart contracts?
Four limits are worth keeping in mind. First, immutability cuts both ways: interactions with a contract are irreversible, so a mistaken transfer or a signed approval generally cannot be undone, and recovery depends on goodwill or legal action. Our guide on what to do in the first hour after a crypto hack covers the steps if the worst happens.
Second, contracts depend on their inputs: oracles, admin keys, front-end websites and the wallets that sign transactions. Most of the money lost in the first half of 2026 came from those layers, per TRM Labs, not from contract logic alone. Third, privacy is limited: because Ethereum smart contracts are on a public blockchain, anyone can instantly track asset transfers and other related information. That helps auditing and cuts confidentiality.
Fourth, law and regulation are still catching up. Whether a contract’s code is enforceable as an agreement, and whether its developers or front-end operators carry obligations, varies by country and is an active policy topic. A smart contract does not remove the need for legal advice in a real commercial deal.
What to watch next
- December 15, 2026: Glamsterdam on the Hoodi testnet. Hoodi is one of the final checkpoints before the upgrade can be considered for Ethereum mainnet. Watch whether the 200 million gas limit and the repricings run cleanly, and when client teams set a mainnet date.
- Gas repricing and old contracts. A ChainSecurity review with Ethereum Foundation input logged 200 findings on the effects of the repricing, including 24 cases that need contract upgrades or user migrations. EIP-8037 sets a uniform state price of 1,530 gas per byte, which sharply raises the cost of creating storage slots, creating accounts and deploying large contracts. Contracts that rely on fixed gas stipends, hardcoded gas limits or assumptions about remaining gas may need changes. Check whether the apps you use have tested against the new rules.
- Mainnet date (not yet set). The mainnet activation time will be announced once client teams decide. Developers have cited mid-to-late January 2027 as the earliest possibility, depending on how the Hoodi fork goes.
Glossary
- Smart contract
- A program stored on a blockchain at its own address that runs exactly as written when a transaction calls it. On Ethereum it can hold funds and call other contracts.
- Ethereum Virtual Machine (EVM)
- The runtime on every Ethereum node that executes compiled contract code, so all nodes reach the same result.
- Gas
- The unit that measures computational work on Ethereum. Each operation costs a set amount of gas, and the sender pays for the gas used.
- Gwei
- One billionth of an ETH, the unit most often used to quote gas prices.
- Base fee
- The per-gas fee set by the network that is burned rather than paid to anyone.
- Priority fee (tip)
- An optional extra per-gas payment that goes to the validator and encourages inclusion of a transaction.
- Revert
- The undoing of a transaction’s state changes after a failure. The gas spent up to that point is still charged.
- Oracle
- A service that brings off-chain data, such as prices, to a contract that cannot fetch it on its own.
- Reentrancy
- A flaw in which a contract is called again before its first execution has finished, letting an attacker repeat an action such as a withdrawal.
- Multisig
- A contract account that needs several valid signatures before it will execute a transaction, often used to control admin powers.
- Upgrade proxy
- A pattern in which users interact with a fixed address that forwards calls to replaceable logic code, so whoever holds the admin key can change behavior.
- Timelock
- A delay between an admin action being queued and taking effect, giving users time to react or exit.
- Verified source code
- Human-readable contract code published on a block explorer and matched to the deployed bytecode, so anyone can inspect it.
- Glamsterdam
- The planned Ethereum network upgrade that combines the Amsterdam execution-layer and Gloas consensus-layer changes, including enshrined proposer-builder separation and gas repricing.
- Hoodi
- An Ethereum public testnet where upgrades are rehearsed with no real funds before mainnet.
- EIP-8037
- The Ethereum Improvement Proposal that reprices state-related gas costs, which helps make room for a much higher block gas limit.
Sources
- ethereum.org: Introduction to smart contracts (developer docs)
- ethereum.org: Smart contracts, what they are and their benefits
- ethereum.org: Technical intro to Ethereum
- ethereum.org: Smart contract security (reentrancy)
- arXiv: A Survey of Security Vulnerabilities in Ethereum Smart Contracts
- Chainalysis: The Hidden Code Problem, unverified smart contracts as a target, June 9, 2026
- TRM Labs: H1 2026 crypto hacks reach record high as losses fall below USD 1 billion, 2026
- Ethereum Foundation: Glamsterdam Hoodi Testnet Reschedule, December 1, 2026
- Crypto Briefing: Ethereum’s Glamsterdam upgrade set for Hoodi testnet on December 15, 2026, December 2026
- Particle: Ethereum schedules Dec. 15 Hoodi rehearsal for Glamsterdam repricing, late November 2026
- FinancialMarkets.com: Ethereum developers set Dec. 15 for Glamsterdam’s testnet debut, late November 2026
Frequently asked questions
What is a smart contract in simple terms?
A smart contract is a computer program stored on a blockchain. It holds rules and data at its own address, and when someone sends it a transaction, it runs those rules and records the result. Think of a vending machine: the right input produces a predetermined output, with no clerk involved. It is not automatically a legal contract, and it is only as good as its code.
How do smart contracts work on Ethereum?
A developer writes code (often in Solidity), compiles it to bytecode and deploys it in a transaction, which gives the contract its own address. Users then send transactions that call its functions. Every node runs the same code in the Ethereum Virtual Machine, reaches the same result, and records any state change. The caller pays a gas fee for the computation.
Can smart contracts be hacked?
Yes. The contract's code runs as written, so a bug in the code can be exploited, and so can weak admin keys or bad price data. Dated examples include The DAO (June 17, 2016), Mango Markets (October 11, 2022), Cetus (May 22, 2025) and Balancer v2 (November 3, 2025). Audits reduce risk but do not remove it: Balancer had been audited by several firms.
Why do smart contracts need gas fees?
Gas prices computation. Every step a contract runs costs gas, which stops anyone from running endless loops for free and pays the people securing the network. On Ethereum the fee is gas used times the base fee plus a priority tip. The base fee is burned and the tip goes to the validator. A failed transaction still pays for the work done.
What are examples of smart contracts?
Common examples are stablecoins, decentralized exchanges such as automated market makers, lending protocols, multisig wallets, DAO treasuries and voting, token vesting and escrow, NFTs, and tokenized real-world assets. As of December 3, 2026, DefiLlama showed about $63.5 billion locked in DeFi smart contracts and about $278 billion in stablecoins.
Can a smart contract be changed or deleted after it is deployed?
By default, no. Ethereum's documentation says contracts cannot be deleted by default and interactions with them are irreversible. Developers can still build in upgrade paths, usually a proxy contract controlled by an admin key or multisig, which adds a different risk: whoever holds that key can change the rules. Check who can upgrade a contract before you rely on it.
This explainer is reviewed and updated as the rules and the market change. Last reviewed December 4, 2026. It is educational content and not financial, legal or tax advice.