Skip to content
SELTENLABS

Equilibrium at every move

iGaming platform for operators: wallet, PAM and back office

A double-entry ledger balances to the minor currency unit, and a repeated provider request never doubles money.

core · Ledgerexample, values are illustrative
EntryAccountEUR
tx-1001player #42−500
tx-1001game account+500
Sum of entries0
Player balance10,0009,500version 7
The same bet againreplay: trueNo new entries: the answer comes from the key

The path of one bet

Three moves of one request. The ledger balances after each.

The signature matches and the key is new. Player −500, game account +500, entries sum to 0. The bet.posted event is written in the same transaction.

core · Ledgerexample, values are illustrative

Provider request

POST /api/provider/selten-mock/bet

X-Signature: 9b3f…c41e

{
"player_id": 42,
"currency": "EUR",
"amount": 500,
"transaction_id": "tx-1001",
"round_id": "r-77",
"game_code": "demo-game-1"
}

Platform response · 200

{
"transaction_id": 318,
"balance": 9500,
"balance_version": 7,
"replay": false,
"status": "posted"
}

Ledger

tx-1001player #42−500
tx-1001game account+500
Sum of entries0

bet.posted → Kafka

Idempotency key
selten-mock:tx-1001new

Player balance

9,500EUR · version 7

  1. HMAC signature
  2. Game catalogue
  3. Idempotency key
  4. Ledger entries
  5. Balance version
  6. Event to Kafka
  7. Response

The path of one bet

Three moves of one request. The ledger balances after each.

  1. 1A new bet

    The signature matches and the key is new. Player −500, game account +500, entries sum to 0. The bet.posted event is written in the same transaction.

    core · Ledgerexample, values are illustrative

    Provider request

    POST /api/provider/selten-mock/bet

    X-Signature: 9b3f…c41e

    {
    "player_id": 42,
    "currency": "EUR",
    "amount": 500,
    "transaction_id": "tx-1001",
    "round_id": "r-77",
    "game_code": "demo-game-1"
    }

    Platform response · 200

    {
    "transaction_id": 318,
    "balance": 9500,
    "balance_version": 7,
    "replay": false,
    "status": "posted"
    }

    Ledger

    tx-1001player #42−500
    tx-1001game account+500
    Sum of entries0

    bet.posted → Kafka

    Idempotency key
    selten-mock:tx-1001new

    Player balance

    9,500EUR · version 7

    1. HMAC signature
    2. Game catalogue
    3. Idempotency key
    4. Ledger entries
    5. Balance version
    6. Event to Kafka
    7. Response
  2. 2The bet repeated

    The network resends the bet with the same transaction_id. The ledger is untouched, the answer is the same. The same key with other parameters gets 409.

    core · Ledgerexample, values are illustrative

    Provider request

    POST /api/provider/selten-mock/bet

    X-Signature: 9b3f…c41e

    {
    "player_id": 42,
    "currency": "EUR",
    "amount": 500,
    "transaction_id": "tx-1001",
    "round_id": "r-77",
    "game_code": "demo-game-1"
    }

    Platform response · 200

    {
    "transaction_id": 318,
    "balance": 9500,
    "balance_version": 7,
    "replay": true,
    "status": "posted"
    }

    Ledger

    tx-1001player #42−500
    tx-1001game account+500
    Sum of entries0

    No new entries: the answer comes from the key

    Idempotency key
    selten-mock:tx-1001known

    Player balance

    9,500EUR · version 7

    1. HMAC signature
    2. Game catalogue
    3. Idempotency key
    4. Ledger entries: not executed
    5. Balance version: not executed
    6. Event to Kafka: not executed
    7. Response
  3. 3A bet rollback

    The amount is returned and the bet is marked cancelled. A rollback that arrives before its bet leaves a marker, and the late bet is not charged.

    core · Ledgerexample, values are illustrative

    Provider request

    POST /api/provider/selten-mock/rollback

    X-Signature: 9b3f…c41e

    {
    "player_id": 42,
    "currency": "EUR",
    "transaction_id": "tx-1003",
    "ref_transaction_id": "tx-1001"
    }

    Platform response · 200

    {
    "transaction_id": 319,
    "balance": 10000,
    "balance_version": 8,
    "replay": false,
    "status": "posted"
    }

    Ledger

    tx-1003player #42+500
    tx-1003game account−500
    Sum of entries0

    Bet tx-1001 is marked cancelled

    Idempotency key
    selten-mock:tx-1003new

    Player balance

    10,000EUR · version 8

    1. HMAC signature
    2. Game catalogue
    3. Idempotency key
    4. Ledger entries
    5. Balance version
    6. Event to Kafka
    7. Response

Platform and modules

Layers from top to bottom, every node with its own status.

All modules and capabilities
core · System map

Products

  • bo

    back office

    live
  • core

    console and API

    live
  • board

    data analysis

    live
  • guard

    perimeter

    live
  • mcp

    AI and partners

    live
  • api

    external API

    live

Core

  • Ledger

    double entry

    live
  • Wallet

    balance and version

    live
  • Bonuses

    wagering

    live
  • Cashier

    demo, PSP planned

    in progress
  • Access rights

    section and level

    live
  • Integrations

    vendor cascade

    live

Data and bus

  • Kafka

    6 topics, outbox

    live
  • PostgreSQL

    BIGINT amounts

    live
  • Valkey

    limits and cache

    live
  • Backups

    14 and 30 days

    live

Outside world

  • Game providers

    seamless wallet

    live
  • Payments

    PSP planned

    planned
  • KYC

    adapter, no contract

    in progress
  • AML

    verified on a stub

    in progress
  • Messaging

    not connected

    in progress
  • Monitoring

    status page

    live

Integrations: a primary vendor and fallbacks

17 categories of external services. On a refusal the request moves to the next vendor, and a money operation with an unknown outcome stops the cascade.

core · Integrationslogic diagram, vendors are generic

The primary refused: the request moved to a fallback and the answer came back.

KYC: documents and face

Sumsub: the adapter is written, no live keys yet. A test vendor and manual review are live.

Options in the category

  • Sumsubadapter ready, no contract
  • KYCAIDalternative
  • Veriffplanned
  • Onfido (Entrust)planned
  • Jumioalternative

Adapters are verified on stubs so far. The names listed are options we looked at, not partners.

Security and ledger balance

Money is checked by arithmetic, access by rights.

What has to balance

  • Sum of the entries of every operation= 0
  • Account balance and the sum of its entriesequal
  • Player balance≥ 0
  • A repeat with the same keyno debit
  • Idempotency

    A key on every operation. The same key with other parameters: 409.

  • Signed requests

    HMAC-SHA256 over the raw body. A bad signature: 401.

  • Access rights

    A section and a level: view, edit, grant. Manual corrections have a daily cap.

  • Sign-in and keys

    Password and TOTP, managed sessions. An API key has its own rights, lifetime and IP allowlist.

  • The event goes with the money

    An event is written to the database in the same transaction and then published to Kafka.

  • Backups

    A nightly dump kept 14 days, an off-site copy 30 days, a restore test every week.

For partners: three ways to connect

Each has its own entry and its own limits.

  • Operators

    External API by key

    Calls to /v1: players, ledger, payments, bonuses, games, KYC. Withdrawal decisions and bonus grants are not available to a key.

    GET /v1/players

    Authorization: Bearer slk_…

    • key rights
    • projects
    • lifetime
    • IP allowlist
    • 600 requests a minute
    API reference
  • Game providers

    Seamless wallet

    Balance, bet, win and rollback with an HMAC signature. The common path works today for the built-in demo provider; a new one joins through development.

    POST /api/provider/{provider}

    X-Signature: HMAC-SHA256(body)

    • /balance
    • /bet
    • /win
    • /rollback
    How to sign a request
  • AI agents and partner systems

    MCP server

    15 tools by the key's rights, player data masked. Changes only by request, and a person decides.

    request_change

    Request: a comment on player #42

    waits for a person

    get_player → emailj•••@•••

    Connect an agent

Equilibrium at every move

Tell us what you are launching: as an operator, a game provider or an integrator.

Trembling-hand perfect.