Build prediction markets in minutes with our React components and SDK. From getting started to advanced customization.
npm install @predictkit/react @predictkit/sdkGet a prediction market running in just 3 lines of code
import { PredictKitProvider, PredictionWidget } from '@predictkit/react';
function App() {
return (
<PredictKitProvider>
<PredictionWidget marketAddress="0x..." />
</PredictKitProvider>
);
}Set up your first prediction market in 5 minutes. Learn the core concepts and architecture.
Complete reference for all components, hooks, and SDK methods with examples.
Common questions when integrating PredictKit
Currently, PredictKit is deployed on BNB Chain Testnet. Mainnet deployment and support for other EVM-compatible chains (Polygon, Arbitrum, Base) is planned for future releases.
You can use the SDK's PredictKitClient to create markets programmatically. Initialize the client with your signer, then call createMarket() with your question, resolution time, and optional oracle configuration. See the API Reference for full examples.
Yes! The widget accepts a theme prop and custom CSS classes. You can override colors, fonts, and spacing. The widget also respects CSS custom properties for easy theming integration.
AMM (Automated Market Maker) markets have liquidity pools that enable instant trading with dynamic odds. P2P (Peer-to-Peer) markets are simpler - users bet directly into a shared pool with fixed payouts. AMM markets offer better UX but require LPs to provide initial liquidity.
Join our community, report issues, or contribute to PredictKit