Tournament Headless Functions
Get Recommended Tournaments
const tournaments = await LucraSDK.getRecomendedTournaments({
includeClosed: true,
limit: 50,
});[
{
"id": "tournament-1",
"title": "Weekend Pool",
"type": "POOL",
"fee": 5,
"buyInAmount": 5,
"description": "Win by placing in the top 10",
"participants": [
{ "id": "user-1", "username": "alice", "place": 1, "rewardValue": 20 },
{ "id": "user-2", "username": "bob", "place": 2, "rewardValue": 10 }
],
"status": "OPEN",
"metadata": null,
"iconUrl": "https://...",
"expiresAt": "2024-01-01T00:00:00Z",
"potTotal": 100
}
]Get Tournament Matchup
Join Tournament
Error handling example
Types
Event: Tournament Joined
Usage examples
Join with demographic prompt fallback
Launch demographic form directly
Check user demographics before calling join
Last updated
