puul_partner_sdk library

Official Dart/Flutter SDK for the Puul Partner API.

import 'package:puul_partner_sdk/puul_partner_sdk.dart';

final puul = PuulPartner(
  clientId: 'your-client-id',
  clientSecret: 'your-client-secret',
);

final markets = await puul.markets.list();

Classes

AccessTokenResponse
OAuth2 access token response from POST /partner/oauth/token.
BuyTicketResponse
Response from buying ticket(s).
DepositAccountInfo
Deposit account information.
FxRateResponse
FX rate response from Puul.
LinkTokenResponse
Link token response from POST /partner/link-tokens.
LotteryApi
Lottery ticket purchases and draw results.
LotteryDrawResult
Draw results for a lottery pool.
LotteryEntriesResponse
Response from listing entries.
LotteryEntry
A lottery entry / ticket.
LotteryPool
A lottery pool / draw.
Market
A prediction market.
MarketOutcome
A market outcome option.
MarketsApi
Market discovery.
PendingPrediction
Pending prediction for JIT funding.
Prediction
A placed prediction.
PredictionsApi
Prediction placement and tracking.
PrizeTier
Prize tier within a lottery pool.
PuulPartner
Official Dart client for the Puul Partner API.
PuulPartnerConfig
Configuration for PuulPartner client.
QuoteResponse
Quote response for slippage protection.
SessionResponse
Session response from exchanging a link token via POST /partner/sessions.
SessionsApi
User linking and session management.
WalletApi
Wallet and finance operations.
WalletBalance
Wallet balance.
WebhookEvent
A webhook event from Puul.
WithdrawParams
Withdrawal request parameters.
WithdrawResult
Withdrawal result from an omnibus withdrawal.

Enums

PredictionStatus
Prediction status values.

Functions

parseWebhookEvent(Map<String, dynamic> json) WebhookEvent
Parse a raw webhook JSON body into a typed WebhookEvent.
verifyWebhookSignature({required String rawBody, required String signature, required String secret}) bool
Verify a Puul webhook signature using HMAC-SHA256.

Exceptions / Errors

PuulError
Typed error class for Puul API errors.