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>>