Skip to content

Session game

Blackjack

Classic 21 against the dealer, with doubles, splits and insurance.

Return to player
99.72%
Volatility
Low
Max win
3x
Implied house edge
0.27%

Return to player: With perfect play.

How a round of Blackjack goes

Blackjack is a session game. Each player decision (hit, stand, double, split or insurance) is one follow-up call until the hand settles.

  1. Player and dealer are dealt two cards each.

  2. The player hits, stands, doubles, splits or takes insurance.

  3. The dealer plays by fixed rules, and a natural blackjack pays 3 to 2.

The player chooses
Each move of the hand
A win pays
Even money, 3 to 2 on a blackjack, up to 3x
Profit above your limit
A win past your max profit pays the limit, and the record says so.

Check any Blackjack round

Each number the round reads comes from HMAC-SHA256 of the server seed, the client seed, the round counter and a cursor.

Open the fairness verifier
  1. Committed before the bet (done)

    The player sees the SHA-256 hash of the server seed before playing.

  2. Played on three inputs (done)

    The round uses the server seed, the player’s client seed and a counter.

  3. Revealed on rotation (done)

    When the player rotates seeds, the old server seed is revealed.

  4. Recomputed by anyone (now)

    The round recomputes from the three inputs and must match its record.

Every settled round keeps a record like this one. The verifier replays it in your browser and says whether it matches.

Settled round record
{
  "game": "BLACKJACK",
  "input": {
    "currency": {
      "code": "USD",
      "scale": 2
    },
    "limits": {
      "max_profit": "100000.00",
      "max_stake": "1000.00",
      "min_stake": "0.10"
    },
    "params": {},
    "profile": "source",
    "stake": "1.00"
  },
  "steps": [
    {
      "outcome": {
        "exposure": "2.00",
        "payout": "0.00",
        "refund": "0.00",
        "stake": "1.00",
        "status": "open",
        "trace": {
          "from": 0,
          "to": 52
        },
        "view": {
          "actions": [
            "Hit",
            "Stand",
            "Double"
          ],
          "current_hand": 0,
          "dealer_hand": [
            24
          ],
          "dealer_score": 8,
          "floats_used": 52,
          "hand1_status": "in_progress",
          "hand2_status": "not_started",
          "insurance": 0,
          "known": false,
          "offered": [
            "Hit",
            "Stand",
            "Double"
          ],
          "player_hand": [
            29,
            15
          ],
          "player_score": 14,
          "split": 0,
          "status": "in_progress"
        }
      }
    },
    {
      "action": {
        "do": "stand"
      },
      "outcome": {
        "exposure": "0.00",
        "payout": "0.00",
        "refund": "0.00",
        "stake": "1.00",
        "status": "settled",
        "trace": {
          "from": 52,
          "to": 52
        },
        "view": {
          "actions": [],
          "bet_amt": "1.00",
          "credit": "0.00",
          "dealer_hand": [
            24,
            13,
            13
          ],
          "dealer_score": 18,
          "floats_used": 52,
          "game_result": "{\"dealer_hand\":[24,13,13],\"dealer_score\":18,\"player_hand\":[29,15],\"player_score\":14,\"hand1_status\":\"loss\"}",
          "hand1_status": "loss",
          "hand2_status": "not_started",
          "max_profit_hit": false,
          "payout": "0",
          "player_hand": [
            29,
            15
          ],
          "player_score": 14,
          "profit": "-1.00",
          "staked": "1.00",
          "status": "loss",
          "win": 0
        }
      }
    }
  ],
  "stream": {
    "client_seed": "example-player-seed",
    "kind": "fairrandom",
    "nonce": 1,
    "server_seed": "7fe0fd5d02cd065d896d9c9a64178eb8b3ccf8e76bc4c5799166c115bd769138",
    "server_seed_hash": "9aaed194825b9198be83872073da4de1d41572ad08b8b3e698526e1262a8257a"
  },
  "tables": [
    {
      "fingerprint": "60f7fb33bd1f7241ea24f325840287af6a77f405fa01935a79bf2b597a94d009",
      "name": "blackjack/v1/draws"
    }
  ],
  "v": 1,
  "version": 1
}

Add Blackjack to your casino

Embed the client and settle through your wallet, or call the API and settle on your own ledger. Each step of a round is one more call.

Embed the client

Your server
POST /v1/launch
Idempotency-Key: lnch_blackjack_01

{ "game": "blackjack", "brand": "br_casino_main",
  "player_ref": "plr_42", "currency": "USD",
  "mode": "real", "locale": "en" }
Your page
<betrail-game
  game="blackjack"
  api-base="https://api.betrail.example"
  token="EXAMPLE_launch_token_0000000000000000000000"
></betrail-game>

Call the API

Your server
POST /v1/rounds
Idempotency-Key: rnd_blackjack_01

{ "game": "blackjack", "brand": "br_casino_main",
  "player_ref": "plr_42", "currency": "USD",
  "stake": "1.00", "params": {} }
  • Each hand action (hit, stand, double, split or insurance) goes to POST /v1/rounds/{id}/actions until the hand settles.
  • The params for Blackjack are in the API reference.
Open the API reference

More session games

See all session games

Cross lanes one step at a time and cash out before a hazard.

Return
94.35–95.00%
Volatility
Player sets
Max win
175,518.20x

Pump a balloon stroke by stroke and cash out before it pops.

Return
94.16–95.00%
Volatility
High
Max win
3,105,322x

Guess whether the next card is higher or lower than the last.

Return
94.15–95.00%
Volatility
Medium
Max win
1,000,000x