Subgraph
GraphQL Queries
Bets (pre-match, live, freebets) & Events
Event Entity

Event Entity

Description

Represents a specific event within the Azuro system, such as new games, bets, or liquidity actions. It stores transaction details, timestamps, and references to related entities like bets and conditions.

List of event names:

  • NewGame: A new game has been created.
  • GameShifted: The game’s start time or conditions have been altered.
  • BettorWin: A bettor has won their bet.
  • ConditionCreated: A new betting condition has been created.
  • ConditionResolved: A betting condition has been resolved.
  • ConditionShifted: The condition has been changed, such as an odds adjustment.
  • ConditionStopped: A condition has been halted or paused.
  • NewBet: A new bet has been placed.
  • NewLiveBet: A new live bet has been placed.
  • BetSettled: A bet has been settled.
  • FreeBetMinted: A freebet has been created and issued.
  • FreeBetReissued: A freebet has been reissued.
  • FreeBetRedeemed: A freebet has been redeemed.
  • FreeBetBettorWin: A freebet has resulted in a win.
  • FreeBetTransfer: A freebet has been transferred.
  • LiquidityAdded: Liquidity has been added to a liquidity pool.
  • LiquidityRemoved: Liquidity has been removed from a liquidity pool.
  • LiquidityTransfer: Liquidity has been transferred between pools or users.
  • AzuroBetTransfer: An Azuro bet has been transferred.
  • MarginChanged: The margin on a bet or condition has been altered.
  • ReinforcementChanged: The reinforcement (backing amount) for a condition has been adjusted.

Usage

This entity is essential for tracking specific events like new game creations, bets being placed, or conditions being resolved. Use it to build real-time updates or historical event logs in your interface.

Attributes

AttributeTypeDescription
idID!Unique identifier for the event.
contractAddressString!Address of the contract where the event was generated.
nameEventName!Name of the event (e.g., NewGame, BetSettled, LiquidityAdded, etc.).
blockNumberBigInt!Block number where the event occurred.
blockTimestampBigInt!Timestamp of the block when the event occurred.
txHashString!Transaction hash associated with the event.
transactionIndexBigInt!Transaction index within the block.
logIndexBigInt!Log index for the event.
sortOrderBigInt!Sort order for the event.
betIdStringID of the bet related to the event (if applicable).
conditionIdStringID of the condition related to the event (if applicable).
gameIdStringID of the game related to the event (if applicable).
freebetIdStringID of the freebet related to the event (if applicable).
depositIdStringID of the deposit related to the event (if applicable).
gasPriceBigInt!Gas price for the transaction where the event occurred.
gasUsedBigIntAmount of gas used during the event.