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

Bet Entity

Description

Represents a user bet in Azuro. It stores details about the bet, such as conditions, odds, amount, and results, and is linked to the core contract for settlement.

Usage

Use this entity to track and manage individual bets placed by users. It can be used to display betting histories, manage user-specific bets, or track bet results and payouts in your interface.

Attributes

AttributeTypeDescription
idID!Unique identifier for the bet (Core contract address + Bet ID).
coreCoreContract!Reference to the core contract associated with the bet.
typeBetType!Type of bet: either Ordinar (single bet) or Express (multiple bets).
betIdBigInt!Numeric identifier for the bet.
bettorString!Address of the person who placed the bet.
ownerString!Address of the owner of the bet.
actorString!Address of the actor (the account that executed the bet).
affiliateStringAffiliate linked to the bet.
rawAmountBigInt!Raw amount staked in the bet.
amountBigDecimal!Formatted value of the amount staked.
rawPotentialPayoutBigInt!Raw value of the potential payout.
potentialPayoutBigDecimal!Formatted value of the potential payout.
rawPayoutBigIntRaw value of the actual payout.
payoutBigDecimalFormatted value of the actual payout.
rawOddsBigInt!Raw odds of the bet.
oddsBigDecimal!Formatted odds of the bet.
rawSettledOddsBigIntRaw odds after settlement of the bet.
settledOddsBigDecimalFormatted odds after settlement.
approxSettledAtBigInt!Approximate time when the bet is expected to be settled.
selections[Selection!]! @derivedFromList of selections tied to this bet.
createdBlockNumberBigInt!Block number when the bet was created.
createdBlockTimestampBigInt!Timestamp of the block when the bet was created.
createdTxHashString!Transaction hash of the bet creation.
resolvedBlockNumberBigIntBlock number when the bet was resolved (if applicable).
resolvedBlockTimestampBigIntTimestamp of the block when the bet was resolved.
resolvedTxHashStringTransaction hash for the resolution of the bet.
statusBetStatus!Status of the bet: Accepted, Canceled, or Resolved.
resultBetResultResult of the bet: Won or Lost.
isRedeemableBoolean!Indicates if the bet is redeemable.
isRedeemedBoolean!Indicates if the bet has been redeemed.
redeemedBlockNumberBigIntBlock number when the bet was redeemed.
redeemedBlockTimestampBigIntTimestamp of the block when the bet was redeemed.
redeemedTxHashStringTransaction hash for the redemption of the bet.
freebetFreebetReference to the freebet details (if applicable).