Project type: Oracle

A Secure Random Number Generator for Crypto Applications | Entropy | Pyth Network* ProductsPrice FeedsReal-time prices for smart contractsBenchmarksHistorical Pyth market dataEntropyRandom numbers for smart contractsExpress RelayEliminate MEV
* EcosystemExplore the EcosystemMeet Pyth UsersCommunity HubSee Data ProvidersBecome a Data ProviderPyth KPI Metrics Program](/grants)DAO Forum Stats](/stats)
* Developers [DocumentationStart integrating Pyth data feeds](###### Developer Guides
+ Get Started Here 
+ What is a Pull Oracle? 
+ How to Use Pyth Price Feeds 
+ Create Your First Pyth App 
+ [Create Charts with TradingView](###### Tutorials
+ EVM 
+ Solana 
+ Aptos 
+ Sui 
+ CosmWasm 
+ Near Feed IDs](/developers/price-feed-ids)Supported Chains Reference](
* ResourcesResourcesMedia RoomNewsPodcastsVideosCareersData DrivenCase StudiesBorrowing and LendingPerpetual FuturesStructured Product VaultsStablecoin ProtocolsSee All Pyth Use Cases
Stake Products[#### Price Feeds
Real-time prices for smart contracts](/price-feeds)[#### Benchmarks
Historical Pyth market data](/benchmarks)[#### Entropy
Random numbers for smart contracts](/entropy)[#### Express Relay
* EcosystemExplore the Ecosystem#### Meet Pyth Users#### Community Hub#### See Data Providers#### Become a Data Provider[#### Pyth KPI Metrics](#### Grants Program](/grants)#### DAO Forum Stats](/stats)
Start integrating Pyth data feeds](###### Developer Guides
+ Get Started Here 
+ What is a Pull Oracle? 
+ How to Use Pyth Price Feeds 
+ Create Your First Pyth App 
+ [Create Charts with TradingView](###### Tutorials
+ Near Feed IDs](/developers/price-feed-ids)Supported Chains Reference](
#### Media Room#### News#### Podcasts#### Videos#### Careers#### Data Driven###### Case Studies
#### Borrowing and Lending#### Perpetual Futures#### Structured Product Vaults#### Stablecoin Protocols#### See All Pyth Use Cases
Privacy PolicyTerms of Use# Pyth EntropySecure On-Chain Randomness
Build secure smart contracts with provably random numbers from Pyth Entropy. Launch NFTs, games, and other unique experiences that your users trust with seamless UX.
start building more](## FAST & RELIABLEUncompromisingUser Experience
Entropy delivers randomly generated outcomes at lightning-fast speeds. With Entropy, your app can serve unpredictable experiences quickly and smoothly. Entropy also guarantees reliable, responsive callbacks to keep your app running.
* Request264562User Commitment0x72ed66002c29eTransaction Hash0x558b032b2acea020 
Reveal264562User Commitment0x72ed66002c29eConverted to Base 10100008306Transaction Hash0xa9d00513af2dfb49 
Strong security guarantees with minimal trust assumptions ensure that outcomes are tamper-proof. Generated outcomes by Entropy can be verified on the blockchain at any time.
## Developer FriendlyIntegrate Quickly and Seamlessly
Integrating with Entropy takes just a few lines of code between your smart contract and frontend. Launch your app in 5 minutes — no funding or complicated configuration required.
contract Foo is IEntropyConsumer {
// Entropy Address on Optimism
IEntropy private entropy = IEntropy(0xdF21D137Aadc95588205586636710ca2890538d5);
address private entropyProvider = 0x52DeaA1c84233F7bb8C8A45baeDE41091c616506;
function requestRandomNumber(bytes32 userRandomNumber) external payable {
uint256 fee = entropy.getFee(entropyProvider);
uint64 sequenceNumber = entropy.requestWithCallback{value: fee}(
) internal override {
copy code## Get Started with**Pyth Data**
Unlock the full potential of your DeFi app with Pyth data. Gain the edge you deserve.
start integrating the community](/community)* Price Feeds
© 2024 Pyth Data AssociationPrivacy PolicyTerms of Use