# Hanzo Oracle — Hanzo AI

> Price feeds, randomness, weather, and custom attestations, delivered to your contracts.

Available Now

# Hanzo Oracle

Bring real-world data on-chain

Price feeds, randomness, weather, and custom attestations, delivered to your contracts. Built on Lux&#x27;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.

[Back to Web3 Overview](https://hanzo.ai/blockchain)

## Get Your API Key

Start building in under 5 minutes

HA

Failover

<50ms

Latency

100+

Chains

Start Building Free

View Documentation

No credit card required. Free tier includes 300M compute units/month.

Trusted by developers building:

DeFiNFTsPaymentsGamingAI Agents

## Key Capabilities

Everything you need, nothing you don&#x27;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.

Solidity

Node

Python

Go

Rust

C

C++

Ruby

Oracle.sol

```
// 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

LuxEthereumPolygonArbitrumAvalancheBNB Chain

## Start Building with Hanzo Oracle

Get your free API key and ship your first request in under 5 minutes. No credit card required.

Get Your API Key

[Explore All Web3 Products](https://hanzo.ai/blockchain)

## Get Hanzo Oracle

Deploy in seconds or self-host with the open-source release.

[Deploy to Cloud](https://console.hanzo.ai/deploy)
