Oracle

Definition

A service that brings off-chain data, most often asset prices, on-chain so programs can use it. On Solana the oracle network writes signed prices into accounts, and each program decides whether to trust what it reads.

Why it matters

Lending, perps, vaults and stablecoins act on prices they cannot see themselves. A wrong price read by the program can trigger bad liquidations or let someone borrow against inflated collateral in a single transaction.

What to check

How it works in practice

Solana programs usually read a pull oracle: someone posts a signed price update to an account, and the program reads it. With Pyth the program takes a PriceUpdateV2 account and asks for a price no older than a set age for one feed ID.

Each read should check the account owner, the feed ID and the age, then apply the exponent and the confidence interval before the price is used in any formula.

Common mistakes

Related terms

Guides

Describe your project in plain English. Smart Match suggests verified Solana providers with a reason for each match. Free for teams.

Get matched →

← All Solana terms