Skip to Content
Developer HubToolkitBetgetComboBetTypedData

getComboBetTypedData

Generates EIP-712 typed data for signing a combo (parlay) bet. This typed data is used with wallet signing methods to create a combo bet 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>

Last updated on