What are smart contracts?

Summary

A smart contract is a program on a blockchain that applies coded rules when a transaction calls it. It can record token balances, check conditions and move digital assets. A token transfer is one example: the program checks the request and updates the sender's and recipient's balances.

Published October 28, 2026updated October 28, 2026

Written by

Philip Palapelas

Software Engineer

Crypto investor since 2020. At Virtune since 2023, building the systems that track the company's crypto ETPs and their underlying assets.

Editorial reviewer

Andreas Severin

CSO

17+ years in derivatives, structured products and asset management. At Virtune since 2023, responsible for the company's institutional investors and distribution of its crypto ETPs.

  • A transaction causes a contract to run; a website is the interface through which a user may reach it.
  • Oracles supply outside information, so correct execution still depends on the quality of that data.
  • Code errors, administrator keys and persistent token permissions can affect assets handled by a contract.

What is a smart contract?

A smart contract is a program stored on a blockchain that applies instructions when a transaction calls it. On Ethereum, the program has an address, code and stored data. It can keep track of token balances, check conditions and transfer assets according to its coded rules.

For example, a token contract can record how many tokens each address controls. When a holder authorises a transfer, the program checks the request and updates the balances. The network's participants execute the rules and agree on the resulting record. The word contract describes the program here; it does not establish every legal right the participants may have outside the chain.

Ethereum is one example, rather than the only network supporting this type of application. Solana uses onchain programs to process instructions under its own program model. How a blockchain works explains the shared record beneath those applications.

What happens when the program runs?

Suppose a holder sends a token to another address on Ethereum. The wallet submits a signed transaction calling the token contract's transfer function. The network executes the function, checks its conditions and records the changed balances if the transaction succeeds.

The holder pays for the computation in Ether (ETH), Ethereum's native crypto-asset. The token being transferred can be something else. This is why an application may need ETH for gas fees even when the recipient receives a stablecoin or another token.

A contract does not wake up by itself because a date arrives or a price changes. A transaction has to cause its instructions to run. One contract can call another as part of that execution, which lets developers combine programs but also creates dependencies between them.

What are smart contracts used for?

Token contracts provide one concrete use. The ERC-20 standard defines common functions for fungible tokens, whose units are interchangeable. Compatible wallets and applications can use those functions to work with different tokens. The standard describes the interface; it does not certify an issuer's backing or a token's value.

In DeFi, contracts can handle token exchanges or borrowing against collateral. In tokenisation, they can record ownership and apply transfer restrictions for a represented asset. The wider Web3 application includes the website or other interface through which a person reaches those contracts.

Applications also run on networks connected to Ethereum, such as Arbitrum. Which network executes the transaction matters for fees and for the services on which the application depends.

Why outside information needs an oracle

A contract can read blockchain data available to it, but cannot independently look up an outside market price or confirm that goods were delivered. An oracle supplies information from outside the chain in a form the program can use. That connection is the oracle problem.

Consider a lending contract that allows borrowing against crypto-assets. It needs a price to compare the collateral with the outstanding debt. If the supplied price is wrong or late, the program may apply its rules to the wrong information. Correct execution cannot repair an incorrect input.

Chainlink provides oracle infrastructure for delivering data to contracts. LINK is distinct from the assets handled by the application. Virtune Chainlink ETP gives price exposure to LINK through a security; holding this Chainlink ETP does not operate an oracle or grant access to the contracts using its data.

What can go wrong?

A coding error can cause an unintended transfer or leave assets locked. Combining contracts means an application may also rely on another program whose failure reaches its users. A code audit can identify problems, but does not establish that every bug has been found.

Some contracts give administrators powers to pause functions, change parameters or introduce upgrades. The people holding those keys can therefore affect the service, even when its transactions are publicly visible. These are questions about contract security and control, rather than proof that public code is automatically reliable.

A token permission is another form of control. An approval can let a contract spend tokens up to an allowance; closing the website does not cancel the permission stored in the token contract. The ERC-20 interface includes these allowances.

Finally, a program moving a token does not prove ownership of an asset held elsewhere. If a token represents a bond or a physical asset, the issuer's obligations and the holder's enforceable rights need an arrangement beyond the code.

Using Ethereum and holding an Ethereum ETP

Virtune Staked Ethereum ETP provides ETH price exposure through a security. The staked Ethereum ETP does not give its holder a wallet, the ability to call contracts or rights to the assets those contracts manage. The Ethereum guide explains ETH's network role, and the ETP guide explains the security.

Sources

  1. Ethereum.org: Introduction to smart contracts
  2. Solana Foundation: Programs on Solana
  3. Ethereum Foundation (ethereum.org): Gas and fees
  4. Ethereum.org: ERC-20 Token Standard
  5. Ethereum.org: Oracles
  6. Chainlink: Chainlink Data Feeds
  7. Ethereum.org: Smart contract security
  8. Virtune Investor Relations: Prospectus