Prerequisites
Before you begin, make sure you have:Smart Contract Knowledge
Basic understanding of Solidity and smart contracts
Prediction Market Platform
A prediction market dApp that needs resolution
Quick Integration
1
Connect to delphAI Contract
Import the delphAI interface and connect to the oracle.
2
Create a Market
Create markets with AI resolution by paying the creation fee.
3
Query Market Resolution
Check market status and get the AI resolution.
4
Test Your Integration
Test with a sample market on testnet.
Example: Full Market Integration
Here’s a complete example of integrating delphAI into your prediction market:Integration Checklist
Smart Contract Setup- Import delphAI interface
- Deploy your market contract
- Connect to delphAI oracle address
- Test on testnet
- Define clear, verifiable questions
- Set appropriate resolution times
- Specify possible outcomes
- Pay creation fee in BNB
- Poll market status regularly
- Retrieve winning outcome when resolved
- Get AI explanation and reasoning
- Handle different market states (Open/Resolved/Cancelled)
- Test full market lifecycle
- Audit your contract integration
- Handle edge cases
- Monitor gas costs
Network Addresses
Network | Oracle Address | Chain ID |
---|---|---|
BSC Mainnet | 0xA95E99848a318e37F128aB841b0CF693c1f0b4D1 | 56 |
Next Steps
Core Concepts
Understand how delphAI resolves markets
Resolution Criteria
Learn how to write effective criteria
Smart Contract API
Explore the full contract interface
Best Practices
Follow integration best practices
Need Help?
Developer Support
Join our Discord for developer support and integration help