Toolkit v6 & SDK v7: Migrating to REST API
We’re excited to announce the release of Toolkit v6.0.0 and SDK v7.0.0!
These major updates bring a significant architectural change: we’re migrating from GraphQL feed to REST API for improved performance and reliability.
What’s New
Toolkit v6.0.0:
- New Feed REST API utilities for fetching games and conditions that replace the deprecated and removed GraphQL feed queries:
getConditionsByGameIds- replacesConditionsquerygetConditionsState- replacesConditionsBatchquerygetGamesByFilters- replacesGamesquerygetGamesByIds- replacesGamequery andGameswhen you need to fetch multiple games by IDgetNavigation- replacesNavigationandNavigationSportqueriesgetSports- replacesSportsquerysearchGames- new one to search games by text query
- New
getBetsByBettormethod for v3 bets history, including preparing orders getBetCalculationreplaces the deprecatedgetMaxBet(it now requires user account address for accuracy and returnsminBetandmaxBet).- Improved typing system
- Extended enum
GameState - Extended enum
BetStatusto include pending bet orders - Renamed and extended enum
BetState→BetOrderState - Helper
getBetStatusnow requiresBetOrderStatefrom bet entity (in case of bets fetched from graphql feed, passnull) - Fixed typo:
calcMindOdds→calcMinOdds - Added field
redeemedAtto legacy bets graphql doc - Removed Data Feed graphql documents and types
SDK v7.0.0:
- New
useSearchGameshook for enhanced game discovery - New
useBetCalculationhook replacesuseMaxBet - Full integration with Toolkit v6’s REST API methods
- Removed deprecated
useMaxBethook - If used tanstack/query keys of sdk hooks, they are changed (primarily, because there was a graphql url in the key, now it’s chain id)
useBetsis prepared to be used with REST API, that supports order history including preparing orders
Migration Guides
To ensure a smooth transition, please follow our comprehensive migration guides:
These guides cover all breaking changes and provide step-by-step instructions for updating your integration.
Questions?
If you encounter any issues during migration or have questions, reach out to us on Telegram.
Last updated on