Merkle Feeds
Merkle feeds provide a secure and efficient “pull oracle” model for accessing option prices and other financial data on Starknet.
What is a Merkle Feed?
A Merkle Feed is an efficient way to publish and verify large amounts of data on-chain while minimizing gas costs.
How It Works

1
Data Sourcing
The merkle trees are built with data from Deribit, the leading platform for options trading.
2
On-chain Publishing
Merkle root is published on-chain every block, ensuring data freshness.
3
Off-chain Retrieval
Merkle proofs with associated data can be retrieved through REST and WebSocket endpoints or through a Rust crate we provide.
4
On-demand Updates
Data is updated on-demand on-chain upon successful verification of the merkle proof.
Key Features
Easy Integration
Easy-to-use Rust SDK for seamless integration
Network Support
Supports both mainnet and testnet environments
Flexible Retrieval
Flexible block selection for data retrieval
Real-time Data
Access to real-time option pricing data
Usage
To start using the Pragma Consumer SDK in your Rust project:1. Add the SDK to your Cargo.toml
2. Initialize the Consumer in your code
3. Fetch Merkle Feed data
4. Use the result to update the data on-chain
Complete On-chain Update Example
Complete On-chain Update Example
If you are just trying to get started with our Options Data Feed, see this self-contained code snippet here. The full Oracle interface specification is available here.
main.rs