Developer Hub
🔮 For applications
SDK
Data Hooks
useMaxBet

useMaxBet

The useMaxBet hook is used for fetch maximum bet amount for provided user's selections.

Usage

import { useMaxBet } from '@azuro-org/sdk'
 
const { data: maxBet, isFetching, error } = useMaxBet(props)

Props

{
  selections: Selection[]
  chainId?: ChainId
  query?: QueryParameter<string>
}
type ChainId = 
  | 100     // Gnosis
  | 137     // Polygon
  | 80002   // Polygon Amoy
  | 88888   // Chiliz
  | 88882   // Chiliz Spicy
  | 8453    // Base
  | 84532   // Base Sepolia
 
type Selection = {
  outcomeId: string
  conditionId: string
}

Return Value

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