Pull Model Oracle
1 min read
Pronunciation
[pool mod-uhl awr-uh-kl]
Analogy
A pull model oracle is like a restaurant chef calling the supplier when a specific ingredient runs low.
Definition
Key Points Intro
Pull model oracles provide on-demand data retrieval to smart contracts.
Key Points
On-demand: contract calls oracle when data is needed
Gas cost: each request incurs transaction fees
Latency: dependent on block confirmations and response time
Asynchronous: uses callbacks to deliver data
Example
Technical Deep Dive
Contracts invoke an oracle’s requestData function, specifying job IDs and callback signatures. Oracle nodes listen for events, fetch data off-chain (e.g., via HTTP), and submit the result in a subsequent transaction. Contracts implement a fulfillOracleCallback to process the response, with gas stipends and failure handling.
Security Warning
If the oracle fails to respond or is compromised, contracts may act on stale or incorrect data.
Pull Model Oracle - Related Articles
No related articles for this term.