What is a blockchain oracle? How smart contracts learn about the real world

By SendPay Business · · 2 min read

What is a blockchain oracle? How smart contracts learn about the real world

A blockchain can only see what happens on the blockchain. A smart contract cannot check a currency price, a sports score or the weather by itself. An oracle is a service that brings that outside information onto the blockchain so contracts can use it.

What oracles are used forHow they workThe oracle problem

What oracles are used for

The most common use is price feeds: lending and trading apps in decentralised finance need up-to-date prices to work out loans and trades. Oracles are also used for insurance payouts, games and anything else that depends on real-world events.

How they work

  1. A smart contract asks for a piece of data, such as a price.
  2. The oracle collects it from one or more outside sources.
  3. It posts the answer on the blockchain.
  4. The smart contract reads the answer and acts on it.

The oracle problem

A smart contract is only as reliable as the data it gets. If an oracle is wrong, slow or manipulated, contracts can pay out wrongly, and some DeFi apps have lost large sums this way. Many oracles now combine data from several independent sources to reduce the risk.

Where SendPay fits

SendPay does not run smart contracts or oracles. SendPay crypto platforms let your customers buy, sell and hold crypto next to their cash, with assets held with regulated partners.

Build it

Create your own financial platform.

Pick a template, name it, brand it, preview every page before you pay. Your brand, your users, your fees.

Build my platform →

Questions people ask

What is a smart contract?

Code on a blockchain that runs by itself.

Smart contracts →
What is DeFi?

Finance apps built on smart contracts.

DeFi explained →
Can I launch my own crypto app?

Yes, with buy, sell and hold built in.

See platforms →

Read next

This guide is general information, not legal or financial advice. SendPay Business is a technology company, not a bank, and does not take deposits; regulated services on the platforms are provided by licensed partners. PayPal, Patreon and Substack are named as reference points only and are not affiliated with SendPay Business.