Finder makes money from featured partners, but editorial opinions are our own. Advertiser disclosure

What is a smart contract?

The basics, history and benefits of smart contracts, the technology on which DeFi hinges.

Even if you’re just dipping your toes into the cryptocurrency waters, you’ve likely come across the term smart contract. It’s one of many hot, new crypto buzzwords coined almost 30 years ago.

Smart contracts are popular again because of their use cases on Layer 1 blockchain networks such as Ethereum, Binance Smart Chain and Solana.

What is a smart contract?

A smart contract is a set of code that enables a specific service without needing to interact with a human.

An electronic vending machine is the simplest real-world example of an entity that uses smart contract technology. If you insert money into a vending machine and select an item from the machine’s keypad, then the machine dispenses the selected item.

Smart contracts operate on this if-then principle. If certain conditions are met within the rules set in code, then an item or service is provided.

Yet smart contracts are neither smart nor legal. Rather, they are only as intelligent as the if-then parameters that are programmed into them. And unlike traditional contracts, they are not legally binding agreements.

The origin of smart contracts

The term smart contract was coined by computer scientist and cryptographer Nick Szabo in 1994. Inventor of the decentralized currency “bit gold,” predecessor to Bitcoin, Szabo believed that smart contracts could formalize and secure computer networks through the use of these if-then protocols.

Szabo believed that these protocols could establish a trustless state. In such a state, rules are set in code, and counterparty risk — or the likelihood that the person you’re transacting with defaults — is eliminated. Szabo saw the potential for smart contracts to reshape the nature of contractual agreements, especially in the world of finance.

Smart contracts on the blockchain

Vitalik Buterin, a founder of the popular digital asset network Ethereum, picked up where Szabo left off in 2015. Ethereum was the first blockchain protocol to incorporate smart contracts into its network.

By employing smart contracts, Ethereum set the world of decentralized finance — or DeFi — in motion.

One of the first use cases for smart contracts on Ethereum was to issue an initial coin offering (ICO), which is like an initial public offering (IPO) but for cryptocurrency. Ethereum’s token, Ether, was first issued through an ICO.

Decentralized exchanges

Another use case for smart contracts on Ethereum is the development of decentralized apps — more commonly called dApps — such as decentralized exchanges (DEX). On a DEX, people trade digital assets directly with one another — also called peer to peer.

The largest DEX on the Ethereum network is Uniswap. Other popular DEXs include Pancake Swap, which is on the Binance Smart Chain network, and Raydium, which is on the Solana network.

The opposite of a DEX is a centralized exchange (CEX) like Coinbase. On a CEX, a third party is required to complete transactions, and data is stored on centralized servers. CEXs do not employ smart contracts.

Liquidity pools

Smart contracts are also featured within DEX code. DEX users provide the cryptocurrencies available for trade on DEXs through liquidity pools (LPs), which are formed when two digital assets are locked into a smart contract.

In each LP is a trading pair, or a combination of two digital assets that can be exchanged for one another through a DEX. For example, when you use a DEX to lock some of your Aave and Ether tokens into a smart contract, you create an LP. That LP can then be used as fuel for an automated market maker (AMM).

Users are rewarded with digital asset tokens for providing LPs to AMMs. These rewards are sent from smart contract addresses. If people deposit their LPs into AMMs, then they receive certain tokens as a reward, according to the smart contract code. Popular AMMs on Ethereum include Curve Finance and Balancer, while a popular AMM on Solana is Saber.

Smart contracts are also used to mint nonfungible tokens — more commonly called NFTs. After NFTs are minted, smart contracts also are used to verify their ownership and to keep records of their transfers.

Benefits of smart contracts

  • Transparency. Smart contract code is made public through websites like GitHub. If you’re like me and don’t know how to read such code, check the “security score” of smart contract platforms on auditing sites such as Certik.
  • Trustworthiness. Smart contracts are audited by developers who validate proposed smart contract code independently of one another.
  • Inclusivity. Smart contracts don’t require know-your-customer (KYC) protocols or background checks.
  • Minimal bureaucracy. Because smart contracts don’t require a middle person, savings are often passed on to you. For example, trading fees on DEXs are often less than those on CEXs.

Drawbacks of smart contracts

  • They’re irreversible. After a transaction occurs in a smart contract, it can’t be reversed. Developers like to say “Code is law,” but, as is also true in the real world, laws sometimes need to be changed.
  • Code can be flawed. Code is only as good as the developers who write it. And coding errors can expose contracts to hacks, malfunctions or even “rug pulls” — bugs through which developers can steal funds.
  • They’re unregulated. Smart contracts are not regulated by the SEC or other financial protection agencies. You have no legal recourse if your smart contract is hacked.

Bottom line

Smart contracts are digital agreements set in code that operate according to an if-then protocol. Yet they can’t think for themselves, nor are they legally binding agreements.

Also, no regulatory oversight exists for smart contracts. You’re expected to trust the reputation of a blockchain and its developers when engaging with smart contracts.

Smart contracts may be used on a broader scale in the future — and could even replace traditional contracts. Yet government oversight and more thorough auditing processes may be needed before they can be more broadly implemented.

For now, though, they are widely used in DeFi, the Wild West of finance.

Whether products shown are available to you is subject to individual provider sole approval and discretion in accordance with the eligibility criteria and T&Cs on the provider website.

Product GXFCY Deposit methods Fiat currencies Cryptocurrencies Offer Disclaimer Go to site
eToro Cryptocurrency Trading
eToro logo
Bank transfer, Credit card, Debit card, Neteller, Skrill

18

78

Disclaimer: Cryptoasset investing is highly volatile and unregulated in the UK and some EU countries. No consumer protection. Tax on profits may apply.
Go to site

Capital at risk

View details
Bank transfer, Cryptocurrency

1

369

Go to site

Capital at risk

View details
KuCoin Cryptocurrency Exchange
KuCoin logo
Bank transfer, Credit card, Cryptocurrency, Debit card, PayPal, P2P

50

743

Not available for US citizens
Go to site

Capital at risk

View details
Bybit Cryptocurrency Exchange
Bybit logo
Bank transfer, Credit card, Cryptocurrency, Debit card, P2P

73

279

Disclaimer: Highly volatile investment product. Your capital is at risk. Not available for US citizens
Go to site

Capital at risk

View details
Bank transfer, Credit card, Cryptocurrency, Debit card

8

1607

Not available for US citizens
Go to site

Capital at risk

View details
Bank transfer, Credit card, Cryptocurrency, Debit card, Apple Pay, Google Pay, SWIFT

8

222

Go to site

Capital at risk

View details
Uphold
Uphold logo
Bank transfer (ACH), Credit card, Debit card, Apple Pay, Google Pay

27

237

Capital at risk

View details
Bank transfer, Credit card, Debit card, Neteller

42

357

Finder Exclusive: Get 25% discount on all commission for 1 transaction when using promocode Finder25. There is no time limit on the validity of the promo code.
US residents: Restricted in the following states - NY, CT, NM, WA, HI, AL, VT, FL, AK, NV.
Go to site

Capital at risk

View details
Bank transfer, Credit card, Cryptocurrency, Debit card, SEPA, Faster Payments (FPS)

3

96

Capital at risk

View details
Credit card, Fedwire, SEPA, Google Pay, SWIFT, Bank card

6

15

Capital at risk

View details
Bank transfer (ACH), Cryptocurrency, Debit card, PayPal, Apple Pay, Google Pay, SWIFT

7

151

Get $15 in Bitcoin when you trade $100 with code Finder15
Go to site

Capital at risk

View details
Bank transfer, Credit card, Cryptocurrency, Debit card, PayPal, Wire transfer, Apple Pay, Google Pay, SWIFT

31

378

Capital at risk

View details
loading

Are you visiting from outside the US?

Select an option to continue

Bybit Cryptocurrency Exchange

Bybit Cryptocurrency Exchange logo
  • Offers leverage and derivative trading
  • Supports EUR, GBP and CHF
  • Licensed to operate in all European countries
Go to site
Disclaimer: Highly volatile investment product. Your capital is at risk. Not available for US citizens

KuCoin Cryptocurrency Exchange

KuCoin Cryptocurrency Exchange logo
  • Buy, sell and trade over 700 crypto assets
  • Supports 10 Asian fiat currencies
  • Offers crypto futures trading
Go to site
Not available for US citizens

Kraken Cryptocurrency Exchange

Kraken Cryptocurrency Exchange logo
  • Buy, sell and trade over 200 crypto assets
  • Licensed to operate in 17 jurisdictions in Oceania
  • Supports AUD
Go to site

Binance Cryptocurrency Exchange (Not available to US users)

Binance Cryptocurrency Exchange (Not available to US users) logo
  • Supports over 300 crypto assets
  • Binance Pay enables users spend their crypto
  • Binance P2P supports multiple African fiat currencies
Go to site

Binance Cryptocurrency Exchange (Not available to US users)

Binance Cryptocurrency Exchange (Not available to US users) logo
  • Supports over 300 crypto assets
  • Binance Pay works with Credencial Payments to support crypto payments
  • Binance P2P supports five Latin American fiat currencies
Go to site

Bybit Cryptocurrency Exchange

Bybit Cryptocurrency Exchange logo
  • Supports leverage and derivative trading
  • Supports 300 spot trading pairs
  • Low-to-non-existent trading fees
Go to site
Disclaimer: Highly volatile investment product. Your capital is at risk. Not available for US citizens
Frank Corva's headshot
Written by

Writer

Frank Corva is business-to-business (B2B) correspondent for Bitcoin Magazine and formerly the cryptocurrency writer and analyst for digital assets at Finder. Frank has turned his hobby of studying and writing about crypto into a career with a mission of educating the world about this burgeoning sector of finance. He worked in Ghana and Venezuela before earning a degree in applied linguistics at Teachers College, Columbia University. He also taught writing and entertainment business courses in Japan and worked with UNICEF in Namibia before returning to the US to teach at universities in New York City. Earlier in his career, he spent years working as a publicist and graphic designer for record labels like Warner Music Group and Triple Crown Records. During that time, he was also a music journalist whose writing and photography was in published in Alternative Press, Spin and other outlets. See full bio

More guides on Finder

Ask a question

Finder.com provides guides and information on a range of products and services. Because our content is not financial advice, we suggest talking with a professional before you make any decision.

By submitting your comment or question, you agree to our Privacy and Cookies Policy and finder.com Terms of Use.

Questions and responses on finder.com are not provided, paid for or otherwise endorsed by any bank or brand. These banks and brands are not responsible for ensuring that comments are answered or accurate.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Go to site