Aggregator SDK overview6 commands · v0.1.1
What you can build
How it works
Your application calls your backend. The SDK connects that backend to the Aggregator HTTP gateway, keeping credentials and wallet decisions on your server.
- 01
Configure access
Create a scoped Game API key, allow your backend IP and save your HTTPS return origins.
- 02
Send a command
Use a catalogue identifier to discover games, create players or launch a session.
- 03
Handle the result
Check the response, deliver launch URLs only to their player and reconcile wallet events.
import { AggregatorClient } from '@aggregator-network/sdk'; const apiKey = process.env.AGGREGATOR_API_KEY;if (!apiKey) throw new Error('AGGREGATOR_API_KEY is required'); const client = new AggregatorClient({ apiKey });const catalogue = await client.getGameList({ currency: 'USD', list_type: 2,});Choose your call pattern
Use the client for outgoing requests and the signature helper for incoming settlements. Each flow has its own handling requirements.
Read and demo
Fetch the catalogue or request an eligible demo. No mutation idempotency key is sent.
client.getGameList()MUTATEPersist, then send
Save one operation key and exact payload before creating players, launching or changing free rounds.
client.createPlayer()RECEIVEVerify, then settle
Check the raw-body signature and durably deduplicate each serial number before applying balances.
verifySettlementCallback()What the SDK handles
Typed requests
JavaScript with TypeScript declarations for supported commands and request options.
Explicit operation identities
Mutations require an idempotency key. Your backend persists the key and exact request before dispatch.
Controlled request lifecycle
Per-request cancellation and timeouts; the client never retries an operation automatically.
Consistent error handling
HTTP failures and nonzero numeric API errors throw. Unknown mutation outcomes still require reconciliation.
Server-side credentials
The client rejects browser use, omits cookies, and rejects redirects from the gateway.
Raw-body signature checks
Verify callback HMAC signatures against delivered bytes. Replay prevention and accounting stay in your wallet.
The gateway enforces activation, scopes and game access. Your integration remains responsible for wallet reservations, lossless decimal handling and reconciliation before retrying an unknown outcome.
Requirements
- Runtime
- Node.js 22 or newer, with ESM. Player-facing applications call your own backend.
- Package
- Install the v0.1.1 archive locally. The package is distributed through this developer website.
- Workspace access
- Configure API Setup with a scoped Game API key, backend egress IP and exact HTTPS return origins.
- Game access
- Use an entitled currency and exact catalogue
sorid_hash. Public provider listings do not establish launch entitlement. - Funded play
- Confirm operating approval, production activation, positive GGR balance and an HTTPS wallet callback with its separate signing secret.