Portal pembangun

Portal pembangun / Rujukan API

Dokumentasi teknikal dalam bahasa Inggeris

operator API  /  Public

Public lobby ticker feed for an operator

GET/api/v1/public/jackpots

Local pools and opted-in network pools, excluding closed pools. No player data or credentials. Successful public jackpot feeds allow CORS * and are cached for up to 3 seconds by HTTP caches. Import mountJackpotTicker from /static/common/jackpot/jackpot.js on the games host and pass null for the game SDK plus {container, source: {base, operator, currency}} (§6.3 of the operator guide). Games use the separate bearer-authenticated /api/v1/game/jackpots session feed, not this lobby feed.

Authentication

Public endpoint · no signing headers

Parameters

operatorquery · required
{ "type": "string", "pattern": "^op_[0-9a-f]{32}$" }
currencyquery · optional
Display currency for live amounts, not a change of pool denomination.{ "type": "string", "default": "USD" }
gamequery · optional
{ "type": "string", "maxLength": 32, "pattern": "^[a-z0-9-]+$", "examples": [ "dice", "zenith", "thunder-anvil" ] }

Responses

200 Pools for display; not a player eligibility decision.

Pools for display; not a player eligibility decision.

application/json
currencystring · required
poolsarray · required
Schema (resolved)
JSON Schema
{
  "type": "object",
  "required": [
    "currency",
    "pools"
  ],
  "properties": {
    "currency": {
      "type": "string"
    },
    "pools": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "pool_id",
          "name",
          "kind",
          "status",
          "currency",
          "min_bet",
          "games",
          "rtp_contribution",
          "tiers",
          "as_of"
        ],
        "properties": {
          "pool_id": {
            "type": "string",
            "pattern": "^jp_[0-9a-f]{32}$"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "network",
              "local"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "paused",
              "closed"
            ]
          },
          "currency": {
            "type": "string"
          },
          "min_bet": {
            "description": "Minimum eligible stake; null when this currency cannot participate.",
            "oneOf": [
              {
                "type": "string",
                "description": "Decimal string with at most the currency's number of decimals; no sign, no exponent.",
                "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,8})?$",
                "examples": [
                  "12.50",
                  "0.00010000"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "games": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 32,
              "pattern": "^[a-z0-9-]+$",
              "examples": [
                "dice",
                "zenith",
                "thunder-anvil"
              ]
            }
          },
          "rtp_contribution": {
            "type": "string",
            "examples": [
              "1.0000 %"
            ]
          },
          "as_of": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Snapshot time in Unix milliseconds."
          },
          "tiers": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "tier_no",
                "name",
                "trigger",
                "amount",
                "seed",
                "cycle_no",
                "commitment",
                "last_win"
              ],
              "properties": {
                "tier_no": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 7
                },
                "name": {
                  "type": "string",
                  "examples": [
                    "grand"
                  ]
                },
                "trigger": {
                  "type": "string",
                  "enum": [
                    "random",
                    "must_drop_amount",
                    "must_drop_time"
                  ]
                },
                "amount": {
                  "type": "string",
                  "description": "Decimal string with at most the currency's number of decimals; no sign, no exponent.",
                  "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,8})?$",
                  "examples": [
                    "12.50",
                    "0.00010000"
                  ]
                },
                "seed": {
                  "type": "string",
                  "description": "Decimal string with at most the currency's number of decimals; no sign, no exponent.",
                  "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,8})?$",
                  "examples": [
                    "12.50",
                    "0.00010000"
                  ]
                },
                "average_turnover_per_win": {
                  "type": "string",
                  "description": "Random tier only.",
                  "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,8})?$",
                  "examples": [
                    "12.50",
                    "0.00010000"
                  ]
                },
                "must_drop_before": {
                  "type": "string",
                  "description": "Amount-trigger ceiling.",
                  "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,8})?$",
                  "examples": [
                    "12.50",
                    "0.00010000"
                  ]
                },
                "must_drop_by": {
                  "type": "integer",
                  "description": "Time-trigger deadline in Unix milliseconds."
                },
                "cycle_no": {
                  "type": "integer"
                },
                "commitment": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "SHA-256 commitment for a must-drop cycle."
                },
                "last_win": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "required": [
                    "amount",
                    "at"
                  ],
                  "properties": {
                    "amount": {
                      "type": "string",
                      "description": "Decimal string with at most the currency's number of decimals; no sign, no exponent.",
                      "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,8})?$",
                      "examples": [
                        "12.50",
                        "0.00010000"
                      ]
                    },
                    "at": {
                      "type": "integer",
                      "description": "Unix milliseconds."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
400 The request is malformed: INVALID_JSON, INVALID_BODY (not UTF-8), INVALID_P

The request is malformed: INVALID_JSON, INVALID_BODY (not UTF-8), INVALID_PARAMETER (the message names the field), INVALID_AMOUNT, CURRENCY_NOT_SUPPORTED; on session creation also JURISDICTION_NOT_ALLOWED, JURISDICTION_REQUIRED, PLAYER_AGE_BAND_REQUIRED, HISTORY_URL_REQUIRED.

application/json
errorobject · required
request_idstring
Schema (resolved)
JSON Schema
{
  "type": "object",
  "required": [
    "error"
  ],
  "properties": {
    "error": {
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "Stable, machine-readable. Branch on this, never on `message`.",
          "enum": [
            "INVALID_SIGNATURE",
            "TIMESTAMP_OUT_OF_RANGE",
            "REPLAYED_REQUEST",
            "IP_NOT_ALLOWED",
            "OPERATOR_SUSPENDED",
            "RATE_LIMITED",
            "BODY_TOO_LARGE",
            "INVALID_BODY",
            "INVALID_JSON",
            "INVALID_PARAMETER",
            "INVALID_AMOUNT",
            "NOT_FOUND",
            "METHOD_NOT_ALLOWED",
            "GAME_NOT_FOUND",
            "GAME_DISABLED",
            "REAL_PLAY_NOT_ALLOWED",
            "JURISDICTION_NOT_ALLOWED",
            "JURISDICTION_REQUIRED",
            "JURISDICTION_NOT_CONFIGURED",
            "GAME_NOT_AVAILABLE_IN_JURISDICTION",
            "DEMO_NOT_AVAILABLE_IN_JURISDICTION",
            "PLAYER_AGE_BAND_REQUIRED",
            "HISTORY_URL_REQUIRED",
            "BET_STEP",
            "GAME_NOT_ELIGIBLE",
            "CURRENCY_NOT_SUPPORTED",
            "BET_OUT_OF_RANGE",
            "IDENTITY_MISMATCH",
            "ROUND_NOT_FOUND",
            "REFERENCE_CONFLICT",
            "CAMPAIGN_CANCELLED",
            "REFERENCE_NOT_FOUND",
            "AWARD_NOT_FOUND",
            "AWARD_NOT_ACTIVE",
            "INTERNAL_ERROR",
            "WRONG_HOST",
            "DEMO_NOT_AVAILABLE",
            "SANDBOX_LIMIT_REACHED",
            "SANDBOX_NOT_ALLOWED",
            "SANDBOX_ONLY",
            "NOT_ON_HOSTED_WALLET",
            "HOSTED_WALLET_NOT_CONFIGURED",
            "HOSTED_WALLET_UNAVAILABLE",
            "HOSTED_WALLET_ERROR",
            "PLAYER_LIMIT_REACHED",
            "SESSION_LIMIT_REACHED",
            "CURRENCY_MISMATCH",
            "INVALID_REQUEST",
            "POOL_NOT_FOUND",
            "OPERATOR_NOT_FOUND",
            "INVALID_GAME_CONFIG",
            "STALE_GAME_CONFIG",
            "APPROVAL_PENDING",
            "APPROVAL_REQUIRED",
            "OFFLINE_CHANGE_REQUIRED",
            "MATH_BUILD_CHANGED",
            "RTP_VARIANT_NOT_CERTIFIED",
            "NO_PLAYABLE_STAKE"
          ]
        },
        "message": {
          "type": "string",
          "description": "Human-readable detail for your logs."
        }
      }
    },
    "request_id": {
      "type": "string",
      "format": "uuid"
    }
  }
}
Example
{
  "error": {
    "code": "INVALID_PARAMETER",
    "message": "currency must be a string"
  },
  "request_id": "6f1c2a54-5b1e-4a8e-9a43-3f3e8b8f9d10"
}

Request signing samples

Canonical string and HMAC helpers from the downloadable samples. Wallet callbacks may also use Ed25519; see the wallet signing modes.

Node.js node/spilvon.mjs
Node.js
export const signingString = (ts, method, pathAndQuery, body) => `${ts}.${method.toUpperCase()}.${pathAndQuery}.${body}`;
export const hmacHex = (secret, s) => createHmac("sha256", secret).update(s, "utf8").digest("hex");
Download full sample
Python python/spilvon.py
Python
def signing_string(ts: str, method: str, path_and_query: str, body: str) -> str:
    return f"{ts}.{method.upper()}.{path_and_query}.{body}"


def hmac_hex(secret: str, s: str) -> str:
    return hmac.new(secret.encode(), s.encode("utf-8"), hashlib.sha256).hexdigest()
Download full sample
Go go/main.go
Go
func signingString(ts, method, pathAndQuery, body string) string {
	return ts + "." + strings.ToUpper(method) + "." + pathAndQuery + "." + body
}

func hmacHex(secret, s string) string {
	m := hmac.New(sha256.New, []byte(secret))
	m.Write([]byte(s))
	return hex.EncodeToString(m.Sum(nil))
}
Download full sample · go.mod
PHP php/spilvon.php
PHP
function signing_string(string $ts, string $method, string $pathAndQuery, string $body): string {
    return $ts . '.' . strtoupper($method) . '.' . $pathAndQuery . '.' . $body;
}

function hmac_hex(string $secret, string $s): string {
    return hash_hmac('sha256', $s, $secret);
}
Download full sample

Reviewed, not executed by the sample authors.