Returns a typed data for live bet sign.
Usage
import { getLiveBetTypedData } from '@azuro-org/toolkit'
const typedData = getLiveBetTypedData({
account: account.address,
chainId: appChain.id,
bet: liveBet,
})
const signature = await walletClient.data.signTypedData(typedData)
Props
{
chainId: ChainId // liveSupportedChains
account: Address
bet: LiveBet
}
type LiveBet = {
attention: string
affiliate: Address
core: Address
amount: string
chainId: ChainId
conditionId: string
outcomeId: number
minOdds: string
nonce: string
expiresAt: number
relayerFeeAmount: string
}
Return Value
SignTypedDataParameters