useMutation. On success, each hook automatically invalidates the relevant caches so your UI stays in sync.
usePlaceBet
Places an encrypted private bet. See Place bet for the full parameter reference.TypeScript
useCreateMarket
Creates a YesNo or MultiOutcome market.TypeScript
useResolveMarket
Posts the real-world outcome after market close. Only the resolver wallet can call this.TypeScript
useClaimPayout
Claims the winner’s payout after a market becomes claimable.TypeScript
useClaimRefund
Claims a refund when the resolver never posted an outcome.TypeScript
useCancelMarket
Cancels a market with zero bets. Returns the creator’s bond.TypeScript
Cancellation is only allowed when
totalBetsCount === 0. Use cancelEligibility(market) to pre-flight check before showing the button.useWithdrawCreatorFunds
Withdraws bond plus accumulated creator fees after resolution.TypeScript
Dispute hooks v0.2+
See Resolution for the full flows.TypeScript