General information, not financial, investment, legal, tax or betting advice · Prediction markets carry risk of loss · 18+ or the legal age in your region
Prediction MarketIndex
Prediction Market Index/Glossary/Smart contract
GlossaryPlain definitions

Smart contract

A smart contract is code stored on a blockchain that runs automatically when its written conditions are met, able to hold funds and release them according to its own rules.

By Morten AndersenFounder and editor · Two decades in advisory, hospitality and mediaEditorial review by Fredrik Filipsson · Last reviewed 21 August 2025

Last reviewed 21 August 2025 · Educational, not advice

Information, not advice. This page is general information, not financial, investment, legal, tax, or betting advice. Prediction markets carry a real risk of loss. You must be 18+ or the legal age in your region.
In plain terms

What it means.

A smart contract is a small program that lives on a blockchain. It is written so that when certain conditions are met, it carries out a defined action on its own, such as moving funds from one account to another. The name can be misleading, because a smart contract is neither especially smart nor a legal contract in the usual sense. It is simply code that runs in a fixed way once it is deployed. Its appeal is that the steps execute automatically and the same way for everyone, without a person needing to approve or perform each one, and the record of what happened sits on a shared ledger that many participants can see.

In prediction markets, smart contracts are the engine behind platforms that run on chain. Instead of a company holding your deposit in a bank account and paying you from its own systems, an on chain market can hold the money staked on a question inside a smart contract. When the question resolves, the contract is designed to release the funds to whoever held the winning side, following the logic it was written with. This is why people describe such markets as settling automatically: the payout rules are baked into the code rather than carried out by staff. The design of that code, and how it decides the outcome, therefore matters enormously.

A blockchain cannot observe the outside world by itself. A smart contract has no way of knowing who won an election or what a temperature reading was, so it relies on an oracle, a mechanism that reports real world information to the contract. The contract then settles based on what the oracle reports. This creates a clear point of dependency: if the oracle is wrong, delayed, or manipulated, the contract can pay out on the wrong outcome even though the code itself executed exactly as written. Understanding that a smart contract is only as reliable as its inputs and its logic is central to understanding the risks of on chain markets.

Those risks are real and specific. A smart contract does precisely what its code says, including any mistakes in that code, and a bug or a flaw in the logic can lead to funds being locked or lost with no easy way to reverse it. Many on chain platforms also operate outside the regulatory protections that apply to registered exchanges, which can affect what recourse you have if something goes wrong, and the legal position varies by region and is sometimes unclear, as of August 2025. Automation removes some human steps, but it does not remove risk. A careful person treats a smart contract as powerful but unforgiving code, reads how a platform handles its outcomes, and verifies the details independently. We never name or endorse a platform.

A worked example

Suppose a question asks whether a published figure will exceed a threshold by a set date. Money staked on Yes and on No is held in a smart contract. When the date arrives, an oracle reports the figure to the contract, and the code releases the pooled funds to the winning side according to its rules. No employee processes the payout. But if the oracle reports the wrong number, or the contract was coded with a flaw, the automatic settlement can go wrong, and that is the part worth scrutinising.

Illustrative only. Not a description of any specific platform or contract, and not a prediction.

A note on risk,

Automation is not safety. Smart contracts can carry coding bugs, depend on outcome sources that can fail, and often sit outside familiar protections. Stake only what you can afford to lose, never to chase a loss, and never on borrowed money. If it stops feeling like a free choice, step back. In the United States you can call or text the helpline on 1-800-GAMBLER or visit ncpgambling.org.

Common questions

Answered plainly.

What is a smart contract?

A smart contract is a program stored on a blockchain that runs automatically when its written conditions are met. It can hold funds and release them according to its code, without a person stepping in to execute each step.

How do smart contracts relate to prediction markets?

Some prediction markets run on chain, using smart contracts to hold the money staked on a question and to pay out once the outcome is reported. The contract enforces the rules it was written with, so the design and the source of the outcome matter a great deal.

Are smart contracts safe?

Not automatically. A smart contract does exactly what its code says, including any bugs. Funds can be lost to coding errors, flawed logic, or a bad outcome source, and many on chain platforms sit outside familiar regulatory protections. Treat them with caution.

What is an oracle in this context?

A blockchain cannot see the outside world on its own, so a smart contract relies on an oracle to report what actually happened. If the oracle is wrong or manipulated, the contract can settle on the wrong outcome even though the code ran correctly.

The Forecast

Learn one useful thing a week.

The rules change fast. Get the changes that affect you, plain and current, not tips.

Independent. Every claim dated and sourced. No platform pays for its place.

No tips, no picks, no spam. Information, not advice. Unsubscribe anytime.