Developer Hub
🔮 For applications
Toolkit
Utils
getLiveBet

Returns live bet order.

Usage

import { getLiveBet } from '@azuro-org/toolkit'
 
 
const order = await getLiveBet({
  chainId: appChain.id,
  orderId,
})

Props

{
  chainId: ChainId // liveSupportedChains
  orderId: string
}

Return Value

export type GetLiveBetResponse = {
  txHash: string
  odds: string
  betId: string
} & CreateLiveBetResponse
type CreateLiveBetResponse = {
  id: string
  state: LiveBetState
  errorMessage?: string
}
 
enum LiveBetState {
  Created = 'Created',
  Pending = 'Pending',
  Sent = 'Sent',
  Accepted = 'Accepted',
  Rejected = 'Rejected'
}