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

Returns a typed data for live bet typed signature.

Usage

import { getComboBetTypedData } from '@azuro-org/toolkit'
 
 
const typedData = getComboBetTypedData({
  account: '0xlkns...',
  minOdds: '...',
  amount: '...',
  nonce: '...',
  clientData: {...},
  bets: [ {...}, {...} ],
})
 
const signature = await walletClient.data.signTypedData(typedData)

Props

{
  account: Address
  minOdds: string | bigint
  amount: string | bigint
  nonce: string | bigint
  clientData: BetClientData
  bets: {
    conditionId: string | bigint
    outcomeId: string | bigint
  }[]
}
type BetClientData = {
  attention: string
  affiliate: Address
  core: Address
  expiresAt: number
  chainId: ChainId
  relayerFeeAmount: string
  isBetSponsored: boolean
  isFeeSponsored: boolean
  isSponsoredBetReturnable: boolean
}

Return Value

SignTypedDataParameters<typeof COMBO_BET_DATA_TYPES>