Skip to documentation
/

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.

  1. 01

    Configure access

    Create a scoped Game API key, allow your backend IP and save your HTTPS return origins.

  2. 02

    Send a command

    Use a catalogue identifier to discover games, create players or launch a session.

  3. 03

    Handle the result

    Check the response, deliver launch URLs only to their player and reconcile wallet events.

typescript example
.ts
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.

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 s or id_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.

Next steps

Was this page helpful?