Documentation Index
Fetch the complete documentation index at: https://docs.pragma.build/llms.txt
Use this file to discover all available pages before exploring further.
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?
In Pragma’s case, we publish a Merkle root on-chain that represents a tree of option prices for a specific blockchain height. Users can then use our SDK to retrieve prices off-chain and verify their correctness on-chain, creating a secure and efficient “pull oracle” model.How It Works

Data Sourcing
The merkle trees are built with data from Deribit, the leading platform for options trading.
Off-chain Retrieval
Merkle proofs with associated data can be retrieved through REST and WebSocket endpoints or through a Rust crate we provide.
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
Next steps
Examples
Check out our examples to see the SDK in action and learn more about integrating Pragma’s Merkle Feeds into your project.
GitHub Documentation
For more detailed technical information, please refer to our full documentation on GitHub.
API Reference
View comprehensive API reference on docs.rs.