Radix Oracle
The Morpher Oracle provides real-time price feeds and market data for blockchain applications on the Radix network. This page introduces the Oracle system and its key features.
What is a Blockchain Oracle?
Blockchain oracles are services that connect smart contracts with data from the outside world. They act as bridges between blockchains and external systems, allowing smart contracts to access real-world information such as:
- Price data for cryptocurrencies and traditional assets
- Sports results and event outcomes
- Weather data
- Random number generation
- Any other off-chain information
Pull vs Push Blockchain Oracles
Pull Oracles
- DApps or Smart contracts actively request data from the oracle
- Data is fetched on-demand
- More control over when and how data is updated
- Better suited for real-time or time-sensitive applications
Push Oracles
- Oracles proactively send data to smart contracts
- Data is updated at predefined intervals or thresholds
- More efficient for data that changes at known intervals
- Less suitable for immediate or real-time data needs
The Morpher Oracle Approach
The Morpher Oracle on Radix is a Pull Oracle. This means:
- Data is fetched off-chain by your application
- The Oracle signs this data cryptographically
- Users include the signed data in their transaction manifests
- Smart contracts verify the data on-chain using the Oracle’s public key
This approach offers several advantages:
- Efficiency: Only fetch data when needed
- Cost-effectiveness: No continuous on-chain updates
- Freshness: Always get the latest data at transaction time
- Security: All data is cryptographically signed and verified
Available Networks
The Morpher Oracle is available on both Radix Mainnet and Stokenet (testnet). For detailed information about network configurations, API endpoints, and component addresses, see the Networks and Endpoints page.
Key Features
- Cryptographic Verification: All data is signed using BLS signatures and verified on-chain
- Subscription Model: Access via NFT-based subscriptions
- Multiple Data Sources: Price data from major exchanges and aggregators
- Low Latency: Fast access to real-time market data
- Flexible Integration: Easy to integrate with any Radix DApp
Documentation Sections
- Oracle Architecture - Understand how the Oracle system works
- Pull Oracle Flow - Detailed explanation of the data flow
- Integration Guide - Step-by-step guide to integrate the Oracle
- Networks and Endpoints - Network configurations and API endpoints
- Gumball Demo - Interactive demo of the Oracle in action
Getting Started
To start using the Morpher Oracle:
- Subscribe to the Oracle by purchasing a subscription NFT:
- Mainnet Subscription
- Stokenet Subscription (for testing)
- Follow the Integration Guide to implement the Oracle in your DApp
- Explore the Gumball Demo to see a working example:
- Mainnet Demo
- Stokenet Demo (for testing)