Crypto

Smart contract

Self-executing code stored on a blockchain that runs when called and can enforce rules or move assets according to predefined conditions.

What Smart contract means

A smart contract is blockchain code that acts on inputs without needing a person to manually approve each step. Users or other contracts send transactions to it, and the contract executes its programmed logic if the transaction is valid. The code and its state live on-chain.

Smart contracts are the foundation for many crypto applications, including token transfers, decentralized exchanges, lending protocols, and automated payouts. Their behavior is transparent but immutable enough that coding errors can be costly.

A token sale contract might release tokens only after receiving a matching payment. If the payment condition is met, the contract transfers the tokens automatically.

Common questions

Is a smart contract always legally binding?+

No. It is software on a blockchain. Whether it creates legal obligations depends on the surrounding contract law and facts.

Can smart contracts be changed after deployment?+

Sometimes, but only if the code was designed with upgradeability or admin controls. Many deployed contracts are effectively fixed.

Go to the original material.

01ethereum.org — Introduction to smart contracts02ethereum.org — Technical intro to ether