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
  chainId?: ChainId
  query?: QueryParameter<GameBetsQuery>
}
type ChainId = 
  | 100     // Gnosis
  | 137     // Polygon
  | 80002   // Polygon Amoy
  | 88888   // Chiliz
  | 88882   // Chiliz Spicy
  | 8453    // Base
  | 84532   // Base Sepolia

Return Value

UseQueryResult<Record<outcomeId, string>>
import { type UseQueryResult } from '@tanstack/react-query'