For the complete documentation index, see llms.txt. This page is also available as Markdown.

Javascipt

JavaScript Integration

JavaScript Game Integration

Follow these 3 steps to integrate your multiplayer JavaScript-based game with Arcadia:

  1. Receive Players

    • Launch your game via URL parameters including:

      • Player IDs

      • Stake amount

      • Webhook endpoint

      • Developer token

    https://your-game.com?participants=[
        { "id": "9375639", "name": "Alice" },
        { "id": "1049983", "name": "Bob" }
    ]&currentPlayerId=9375639
    &potAmount=$1.00
    &webhookUrl=https://staging.arcadiagames.com/api/webhook-test/room-result
    &token=AUTH_TOKEN
  2. Process Webhook

    • Your server will receive match results.

    • Use the data to validate the match and update Arcadia accordingly.

  3. Finalize Match

    • Return a response containing the result, winner, and confirmation hash.

Development section is in staging right now, will move to production in the coming period.

Last updated