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: NonNullable<GameQuery['game']>
wonOutcomeIds: string[] | null
isLive: boolean
isWin: boolean | null
isLose: boolean | null
isCanceled: boolean
} & Selection
NPM Package
Link: @azuro-org/sdk (opens in a new tab)
Example
Explore a real implementation in the Azuro example app (opens in a new tab).