Skip to main content

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
Market Creation
  • Define clear, verifiable questions
  • Set appropriate resolution times
  • Specify possible outcomes
  • Pay creation fee in BNB
Query Resolution
  • Poll market status regularly
  • Retrieve winning outcome when resolved
  • Get AI explanation and reasoning
  • Handle different market states (Open/Resolved/Cancelled)
Testing & Security
  • Test full market lifecycle
  • Audit your contract integration
  • Handle edge cases
  • Monitor gas costs

Network Addresses

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