Portal pembangun

Portal pembangun / Pembangun

Dokumentasi teknikal dalam bahasa Inggeris

SPILVON / DEVELOPERS

Build your first integration.

One signed request opens a game. Four callbacks connect your wallet. Start with a play-money session, then check settlement against the published contract.

Operator integration guide

Integrating SPILVON games takes two things on your side:

  1. Four wallet endpoints on your server (balance, bet, win, rollback). The player's money never leaves your platform; we ask your wallet to move it.
  2. One signed request to open a game for a player. You get back a URL and put it in an iframe.

A complete working example of both is in this repository: demo-casino/src/index.ts (about 200 lines). Start from it.

You receive from us: an operator id (op_…), an API secret (signs your requests to us) and a wallet secret (signs our requests to you). They are shown once; we cannot read them back, only rotate them. If you prefer not to hold a secret that could forge our calls, choose Ed25519 for the wallet direction instead (section 1.1): you then verify us with our public key.

Your first day

  1. Account. Your SPILVON account manager creates your account in our back office. It is a sandbox from that minute (below): every game, real-mode wallet calls, play money.
  2. Partner portal. Your admin receives an invitation e-mail to the partner portal (https://portal.spilvon.com); sign-in uses your e-mail address and a one-time code, no password. Your admin can add colleagues (developer, finance, support) under Users.
  3. Credentials. You receive an e-mail saying your credentials are ready. A portal admin or developer opens Integration and reveals them once (type your company name to confirm), within 7 days. Nobody at SPILVON sees them, and no e-mail ever contains them.
  4. Wallet. Point the sandbox at your test wallet (portal, Integration > Change settings; applies at once), or start on our hosted reference wallet (below) and launch games straight away.
  5. Conformance. When your wallet is ready, run the conformance test in the portal (Go-live); the report says what to fix.
  6. Go-live. With your production wallet passing and the checklist complete, your admin asks to go live; SPILVON approves (two people on our side).

Notices by e-mail. We send service notices only, from notifications@spilvon.com, in the language each portal user picks (My notices; 20 languages): credentials ready, portal invitation, security notices to your admins and security contact whenever the wallet URL, origins, IP allowlist, wallet signing, credentials or credential-holding portal roles change, go-live confirmation, and monthly statements (finance and admins). If you receive a security notice you did not expect, contact us at once. Allow the sender in your mail filters.

Sandbox first

You start on a sandbox account: its own operator id and secrets, issued the day you sign up, on the same hosts as production (https://api.spilvon.com/api/v1/operator/…, games on https://games.spilvon.com, our keys at https://games.spilvon.com/.well-known/spilvon-wallet-keys.json, also on api.). Each host serves only its own part: the operator API answers only on api.spilvon.com (on games. it returns 421 WRONG_HOST), and game pages, the game client API and game files only on games.spilvon.com. Public read-only data (/.well-known/spilvon-wallet-keys.json, /api/v1/public/…) and /healthz answer on both.

  • Sessions are opened in mode: "real" and call your test wallet with every balance, bet, win and rollback, signed exactly as in production. Every call body carries "sandbox": true; a production wallet should refuse calls that carry it.
  • The hosted reference wallet (below) and our conformance test both check the signed operator_id (section 1.2); so must your test wallet.
  • It is play money: never billed, left out of our platform reports and payout monitoring, and it never takes part in SPILVON Jackpot (/api/v1/operator/jackpots… and the Jackpot Network answer 403 SANDBOX_NOT_ALLOWED; games with a jackpot feature still play, without contributing).
  • Every game in the catalogue can be launched; no lab certificate is involved. Your own reports (reports/daily, round lookups, the partner portal) work as in production.
  • Limits: 600 operator API requests per minute and 2,000 real-mode launches per UTC day (429 SANDBOX_LIMIT_REACHED; demo launches are not counted).
  • Your developers can change the sandbox's wallet URL, origins and IP allowlist themselves in the partner portal (Integration); they apply at once. On a real-money account the same change is a request that SPILVON approves.
  • No test wallet yet? Use our hosted reference wallet: set the sandbox's wallet URL to https://sandbox-wallet.spilvon.com/<your operator id>/wallet and wallet signing to ed25519, and every game plays at once. It holds play money per player (1,000 units to start in fiat and stablecoins), implements every rule of section 3, and accepts only calls flagged sandbox: true. Your server manages its test players through our operator API, signed with your sandbox API credentials like every other operator call (section 1); we forward each call to the hosted wallet, signed by SPILVON. POST https://api.spilvon.com/api/v1/operator/sandbox-wallet/players/<player id>/session with {"currency": "USD"} (optional) answers 201 {"token": "sbx_…", "expires_at": …}; pass the token as token when you open a session. POST …/sandbox-wallet/players/<player id>/deposit with {"currency": "USD", "amount": "500.00"} tops a player up (at most ten times the start balance per call), and POST …/sandbox-wallet/players/<player id>/balance with {"currency": "USD"} returns the balance and the last 50 transactions. They work only for a sandbox account whose wallet URL is the hosted wallet (otherwise 403 SANDBOX_ONLY or 409 NOT_ON_HOSTED_WALLET). Limits per sandbox: 120 of these calls per minute (429 RATE_LIMITED), 1,000 test players and 2,000 open session tokens (409 PLAYER_LIMIT_REACHED / 409 SESSION_LIMIT_REACHED; tokens expire after 12 hours). The hosted wallet's own player URLs no longer accept unsigned calls (401). It is a stand-in: it never counts for going live.
  • A sandbox becomes a real-money account only after your wallet passes the conformance test (section 9) against the wallet URL you will use in production and a SPILVON staff member approves it (two people on our side). This is enforced by the platform, not by procedure: see "Going live" in section 9.
  1. Signing
  2. Opening a game
  3. The wallet API (you implement this)
  4. Rounds
  5. Currencies and amounts
  6. Other operator endpoints and public feeds
  7. Fairness
  8. Billing
  9. Go-live checklist
  10. API changelog

Integration kit

Provably fair

How players and auditors verify rounds: seed commitment, client seed, nonce and the HMAC-SHA256 stream for every game, and the Bitcoin-salted hash chain for the shared crash rooms.