Live
Data: CoinGecko
Language: EN

Crypto Glossary

Smart contract

What is Smart contract?

A smart contract is a program stored on a blockchain that runs automatically when its conditions are met. Once deployed, its code and state are public, and it cannot easily be changed or stopped.

Smart contracts power tokens, decentralized exchanges, lending markets, NFTs and DAOs. On Ethereum they are commonly written in Solidity and executed by every node in the network, which makes their results verifiable by anyone.

The upside is that agreements can be enforced by code rather than by intermediaries. The downside is that bugs are enforced too: a single flaw can let attackers drain millions, and there may be no way to undo it.

Audits, bug bounties and formal verification reduce risk but do not eliminate it. Many contracts are also upgradeable, which means whoever controls the upgrade keys can change the rules.

Updated

Related news

← All glossary terms