⚠️
Important! We’ve moved to V3! This documentation is for V2 only and will be updated in May.
Developer Hub
🔮 For applications
SDK
Data Hooks
useBetsSummaryBySelection

useBetsSummaryBySelection

The useBetsSummaryBySelection Hook should use if you want to show user's bets results on the game page for resolved markets, check useResolvedMarkets.

Usage

import { useBetsSummaryBeSelection } from '@azuro-org/sdk'
 
const { data, isFetching } = useBetsSummaryBeSelection({
  account: '...',
  gameId: '...',
  gameState: GameState.Resolved
})

Props

{
  account: Address
  gameId: string
  gameState: GameState
  query?: QueryParameter<GameBetsQuery>
}

Return Value

UseQueryResult<Record<outcomeId, string>>