useMaxBet
⚠️
DEPRECATED: This hook has been removed in SDK v7.0.0. Please use useBetCalculation instead, which provides comprehensive bet calculation including maximum bet amount.
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'Last updated on