Single Wallet

Single wallet mode means that during the player's gaming process, the gaming platform calls the merchant API in real-time for each transaction to complete the player's balance increase or decrease.

This method has very high performance requirements for merchant API interfaces. The merchant's interface must complete and return results within 500ms, otherwise the gaming platform will consider it a timeout, stop waiting for results, and the player will be unable to perform subsequent game operations.

Request URL

POST {API_URL_ROOT}/xxx

Request Parameters

Header Content

Parameter Required Type Description
sign Yes string Signature, calculated using Signature Algorithm
timestamp Yes int UTC timestamp in seconds, seconds elapsed from January 1, 1970 to now, e.g.: 1741837297
Accept-Language Yes string Accepted language code, refer to Language List, e.g.: zh,en, to provide corresponding language error messages when errors occur.
Content-Type Yes string "application/json; charset=utf-8"

BODY Content

Different interfaces have different parameters, please refer to each specific interface

Response Parameters

All interfaces return Content-Type as "application/json; charset=utf-8"

Parameter Type Description
isSuccess boolean Indicates whether the operation was successful
code int Error code, when isSuccess is false, this field value is a positive integer, Error Codes
message string Error message, the interface will return corresponding error messages based on the Accept-Language value
data object Data, different interfaces return different content

Example

 {
  "isSuccess": true,
  "code": 0,
  "data": [
    {
      "gameId": 1,
      "gameName": "1",
      "gameType": 1,
      "gameBrand": 1,
      "icon": "http://xxx/xxx",
      "homeUrl": "http://xxx/xxx"
    }
  ]
}

results matching ""

    No results matching ""