How to Answer Smart Contract Oracles in Job Interviews?
I’m just starting out with blockchain dev, and I’m trying to get my head around oracles. I get that smart contracts can’t access external data on their own, so oracles act as a bridge. But I’m stuck on a few things:
Trusting the data: How do oracles make sure the info they fetch (like prices or weather data) is accurate? I’ve heard about issues with bad data—are there ways to prevent that?
Do they always use APIs? Or are there other methods to get off-chain data into a contract?
Real-world examples? Like, how would a DeFi app use an oracle to pull crypto prices?
I’ve read a few articles, but practical explanations are hard to find. If anyone can simplify this or point me to good resources, I’d really appreciate it!
Thanks!