Hanzo Oracle
Bring real-world data on-chain
A comprehensive oracle service providing price feeds, randomness, weather data, and custom attestations for smart contracts. Built on Lux's OracleVM with Chainlink integration.
Price Feeds
Real-time and historical price data for crypto, forex, commodities, and stocks.
VRF (Randomness)
Verifiable random numbers for gaming, NFT mints, and fair selection.
Weather Data
On-chain weather data for parametric insurance and prediction markets.
Custom Data Feeds
Bring any API data on-chain with custom oracle configurations.
Get Your API Key
Start building in under 5 minutes
No credit card required. Free tier includes 300M compute units/month.
Trusted by developers building:
Key Capabilities
Everything you need, nothing you don't.
Price Feeds
Real-time and historical price data for crypto, forex, commodities, and stocks.
VRF (Randomness)
Verifiable random numbers for gaming, NFT mints, and fair selection.
Weather Data
On-chain weather data for parametric insurance and prediction markets.
Custom Data Feeds
Bring any API data on-chain with custom oracle configurations.
Cryptographic Proofs
Every data point includes cryptographic proof of authenticity.
Scheduled Updates
Configure update frequency from seconds to daily, based on your needs.
Historical Data
Access historical oracle data for backtesting and analysis.
Low Latency
Sub-second updates for time-sensitive applications.
Simple to Integrate
Get started with just a few lines of code. SDKs for every language.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
import "@hanzo/oracle/IHanzoOracle.sol";
import "@hanzo/oracle/IHanzoVRF.sol";
contract MyDeFiProtocol {
IHanzoOracle public oracle;
IHanzoVRF public vrf;
constructor(address _oracle, address _vrf) {
oracle = IHanzoOracle(_oracle);
vrf = IHanzoVRF(_vrf);
}
// Get latest ETH/USD price
function getEthPrice() external view returns (uint256 price, uint256 timestamp) {
(price, timestamp) = oracle.getLatestPrice("ETH/USD");
require(timestamp > block.timestamp - 1 hours, "Stale price");
}
// Get TWAP price over period
function getTwap(string calldata pair, uint256 period) external view returns (uint256) {
return oracle.getTWAP(pair, period);
}
// Request verifiable randomness for NFT mint
function requestRandomMint() external returns (bytes32 requestId) {
requestId = vrf.requestRandomWords(1, 200000, 3);
}
// VRF callback - receive random number
function fulfillRandomWords(bytes32 requestId, uint256[] memory randomWords) internal {
uint256 tokenId = randomWords[0] % 10000;
// Mint NFT with random traits
}
}Built For
DeFi Protocols
Power lending, derivatives, and synthetic assets with reliable price feeds.
Gaming & NFTs
Generate provably fair random numbers for loot boxes, mints, and gameplay.
Insurance
Trigger parametric insurance payouts based on weather, flight, or event data.
Prediction Markets
Settle markets with verified outcomes from trusted data sources.
Supported Chains
Start Building with Hanzo Oracle
Get your free API key and ship your first request in under 5 minutes. No credit card required.