⚡
Local Oracle
Autonomous • Self-healing • Real-time prediction market
No wallet connected • Local storage mode
No markets yet • Create your first prediction market above
Connect Wallet
Address:
Chain:
Balance: —
Create Prediction Market
Endpoint & RPC Configuration
Endpoint Setup & Best Practices
This app pulls live data from the endpoints you set. It runs entirely in your browser—no servers needed.
Why Use Endpoints?
Endpoints are URLs for APIs that provide prices, sentiment, or oracle data. Some APIs block browser access (CORS), so use a proxy to fix that.
Quick Proxy Setup (Cloudflare Workers – Free)
Cloudflare Workers let you create a proxy in minutes without cost.
- Sign up at dash.cloudflare.com (free).
- Go to Workers & Pages → Create Worker.
- Name it (e.g., oracle-proxy).
- Replace default code with a simple proxy script (search “Cloudflare Worker proxy template” for examples).
- Deploy – get your URL like oracle-proxy.yourname.workers.dev.
Use it as your-proxy-url?target=original-api-url in fields.
Setting Endpoints in the App
Open Settings and enter URLs (with proxy prefix for CORS):
- CoinGecko: For crypto prices. Use
https://api.coingecko.com/api/v3/ - DexScreener: For DEX data. Use
https://api.dexscreener.com/latest/dex/ - Solana WS: For real-time Solana updates. Use
wss://api.mainnet-beta.solana.com - Binance WS: For live Binance prices. Use
wss://stream.binance.com:9443/ws - X/Twitter Proxy: For sentiment scraping. Use proxy +
https://api.twitter.com/2/ - Facebook Proxy: For FB data. Use proxy +
https://graph.facebook.com/ - Reddit Proxy: For Reddit sentiment. Use proxy +
https://oauth.reddit.com/api/v1/ - News Proxy: For news sentiment. Use proxy +
https://newsapi.org/v2/
Save, then refresh markets to apply.
Best Ways to Use Endpoints
- CoinGecko: Reliable for major coins like BTC/ETH. Low cost (free tier).
- DexScreener: Real-time Solana token info. Ideal for new launches.
- WS Endpoints: Live updates without refreshing. Set for high-frequency markets.
- Social Proxies: Scrape sentiment from X, FB, Reddit, news. Use keywords from market question.
- Tip: Start with free APIs. Add proxy for reliability. Test with ‘Refresh All’.
- Profit: Create markets on trending tokens – use DexScreener for edge.
This setup keeps everything private and low-cost. If stuck, search “Cloudflare Worker tutorial”.
