Learn how to Pull Prices and consume Random Numbers
summary
Pith exposes a pull-based oracle (Hermes) that serves 2,500+ prices every 400ms and verifies on‑chain via signed Merkle roots. An EVM integration uses a three-line contract: call updatePriceFeeds (one tx can verify ~150 feeds), then getPrice with an age check to reject stale data. Entropy provides randomness via a commit‑reveal entropy flow using requestV2 and an entropyCallback, with variable fees, reveal delays and optional caller-supplied randomness and gas limits.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:11Pith Network and oracles
- 3:15Push vs pull in oracles
- 5:45On-chain price verification
- 7:13Prices with Hermes API
- 8:14Verifying prices in EVM
- 10:07Q&A
- 13:39Entropy for random numbers
- 14:23Requesting random numbers
- 17:34Commit-reveal for randomness
- 20:46Gas limits and user randomness
- 21:49Giveaway for price access
- 23:37Use cases beyond finance
- 24:32Q&A








