# Oracle (Anchor) Complete all tasks below - Implement an oracle program - Test locally # Update program id ```shell anchor keys sync ``` # Task 1 - Implement [`update`](https://github.com/Cyfrin/solana-course/blob/main/apps/oracle/anchor/exercise/programs/oracle/src/lib.rs) - Check that the `owner` signed this instruction to update the price - Check that `oracle.owner` matches the `owner` account - Update the price - Call `instructions::update` inside `lib.rs` # Build ```shell anchor build ``` # Test ```shell anchor test ```
Complete all tasks below
Implement an oracle program
Test locally
updateCheck that the owner signed this instruction to update the price
Check that oracle.owner matches the owner account
Update the price
Call instructions::update inside lib.rs
A concise walkthrough to Oracle (Anchor) - Implement a secure price update instruction that enforces critical signer and ownership validation. Learn to protect your on-chain data feeds by verifying authority before modifying state variables within the Anchor framework.
Previous lesson
Previous
Next lesson
Next
Course Overview
About the course
Native Rust & Anchor framework
PDAs, CPIs, and SPL Tokens
DeFi builds: oracles, auctions, AMMs
Last updated on January 12, 2026
Rust Developer
SolanaDuration: 8min
Duration: 23min
Duration: 4min
Duration: 2min
Duration: 4min
Duration: 11min
Duration: 4min
Duration: 0min
Duration: 0min
Course Overview
About the course
Native Rust & Anchor framework
PDAs, CPIs, and SPL Tokens
DeFi builds: oracles, auctions, AMMs
Last updated on January 12, 2026