Overview
AzuroSDK is your one-stop solution for building betting dApps on the Azuro Protocol. With a simple installation, you’ll get a fully functional base app that you can customize to match your product needs.
The SDK includes a comprehensive set of React hooks and utility functions to streamline development, so you can focus on business logic and user experience — not boilerplate setup.
ℹ️
You’ll often encounter the following types while using the SDK, so we’ve highlighted them upfront:
- Selection – Represents a user’s bet selection, used for placing bets and calculating odds.
type Selection = {
outcomeId: string
conditionId: string
}- BetOutcome: Detailed info about a user’s bet, including odds, game data, and result status. Extends
Selection.
type BetOutcome = {
selectionName: string
odds: number
marketName: string
game: GameData // from @azuro-org/toolkit
isLive: boolean
isWin: boolean | null // true = won, false = settled but not won, null = still pending
isLose: boolean | null // true = lost, false = settled but not lost, null = still pending
isCanceled: boolean // true = voided, stake refunded for this leg
} & SelectionNPM Package
Link: @azuro-org/sdk
Example
Explore a real implementation in the Azuro example app .