Ready-to-use smart contract examples for integrating with the BON Oracle.
β οΈ This is a blockchain oracle service. Integration is via smart contract ONLY. All questions must be asked through the smart contract (0.01 BNB fee per question).
All examples are in /examples/contracts/
:
IAIOracle.sol
- Oracle interface (copy this to your project)SimplePredictionMarket.sol
- Full prediction market with bettingFlightInsurance.sol
- Automated flight insurance claimsPriceConsumer.sol
- Simple price oracle usage pattern
Example | File | Description |
---|---|---|
Prediction Market | SimplePredictionMarket.sol |
Users bet YES/NO on any question, oracle resolves the outcome |
Flight Insurance | FlightInsurance.sol |
Automated insurance payouts based on flight delays |
Price Oracle | PriceConsumer.sol |
Request real-time prices for any asset |
Happy Building! π