Go Live
in 24 Hours.
Shatter integration friction. Leverage our industry-standard RSA-SHA256 signed Operator API and lightweight SDK to deploy next-generation games instantly.
Cryptographic Security & Edge Protection
We isolate and safeguard client traffic at the edge. Zero sharing of sensitive database fields, fully shielded with military-grade signing standards.
Mutual Authentication & RSA-SHA256
WonderGame enforces strict dual-key trust isolation. You generate a 2048-bit RSA key pair, keep the private key secure, and send your public key to WonderGame. We secure edge-level calls using two mandatory headers:
- 01X-WG-Operator-ID
The unique tenant identifier assigned by WonderGame. Mandatory for Games & Transactions API routing.
- 02X-WG-Signature
The RSA-SHA256 signature of the exact, compact JSON request body, Base64-encoded to guarantee zero tamper parameters.
# Generate your secure 2048-bit private key
openssl genrsa -out private.pem 2048
# Extract the public key to share with WonderGame
openssl rsa -pubout -in private.pem -out public.pem Interactive Signature Flow Pipeline
See how your JSON request body converts to a cryptographic signature to shield endpoints.
{
"user": "usr_9921",
"amount": 250.00
} Rapid Integration Workflow
Get up and running with a frictionless 3-step sequence engineered to expedite operational release.
Exchange Keys & Handshake
Exchange public keys with our integration team. Obtain your unique Operator ID and private API keys to gain instant access to our secure staging sandbox environment.
Implement Webhook Endpoints
Implement quick, idempotent balance checks, transactions debit (bets), credits (wins), and rollbacks on your gaming backend following our detailed, secure payloads.
Pull Catalog & Launch
Query our Games API to fetch available slots, obtain your signed secure Game Launch URL (Real-Money or guest Demo URL), and embed the lightweight game view directly.
High-Performance Seamless Wallet & Idempotency
Eliminate local billing drifts. Our highly optimized single wallet framework performs synchronous, low-latency financial state resolutions at scale.
Real-Time Queries
WonderGame triggers quick, non-blocking balance queries to operator databases. Optimized connection configurations guarantee instant gameplay resolutions without spinning halts.
Frictionless Webhooks
Active gameplay and mechanical slot spins trigger micro-second webhooks on our remote server engine to debit wagers and credit operator pools immediately.
Absolute Consistency
In the event of network disruption or game terminal timeouts, our automated rollback routines trigger immediately to restore players' assets, preventing discrepancies.
Strict Idempotency
Idempotent Webhooks: All wallet requests are idempotent. RGS passes a unique transaction_uuid for each spin. Your backend must cache and return identical responses for retried payloads, completely preventing double-spending and database desynchronization under extreme concurrency.
JSON Payload Examples
Toggle between core operator payload templates. Review clean parameter details matched with real-world RSA secure HTTP bodies.
Next-Gen Micro-Frontend Games SDK
Render games seamlessly with ultra-performance. We offer dedicated dual channel embedding frameworks for zero-style污染 and hardware acceleration.
BOARD Channel (Web Component)
Dynamically load Web Component game modules, instantiating raw Custom Elements in designated client Shadow DOM containers. Elevates absolute performance bounds and delivers direct hardware-accelerated WebGL/Canvas gameplay rendering.
IFRAME Channel (Secure Sandbox)
For legacy layout configurations, our SDK initializes custom secure, high-speed iframe channels automatically, securely granting critical system controls like fullscreen, autoplay, gameplay pad and midi controllers.
Shadow DOM Style Isolation
Absolute style shielding. Regardless of active embedding channel, gaming engines mount elements directly within Shadow Roots. This isolates stylesheet bindings bi-directionally to ensure completely pristine host pages.
import { WonderGameGames, WonderEventHub } from "wonder-game-sdk";
async function startPlay() {
try {
// 1. Structure parameters (launcher_url fetched from your backend API)
const config = {
launcher_url: "https://launcher.wondergame.com/launch?session=op_session_123&game=ot_goldCup",
containerId: "game-viewport",
game_code: "ot_goldCup",
lang: "en"
};
// 2. Initialize and render game on player device
console.log("Initializing WonderGame SDK...");
const sdkInstance = await WonderGameGames.init(config);
console.log("SDK loaded. Active channel:", sdkInstance.getChannelType());
} catch (error) {
console.error("SDK Initialization Failed:", error.code, error.message);
}
}
// 3. Subscribe to real-time events to lock/unlock wallet balances during spins
WonderEventHub.addListener((event) => {
if (event.name === 'wonder-gameplay-lock') {
console.log("Spin started. Temporarily lock player balance:", event.balance);
} else if (event.name === 'wonder-gameplay-unlock') {
console.log("Spin completed. Synchronize player balance:", event.balance);
}
});