bet.md 1.7 KB

~Placing a bet~

4.4.1 Description

This function, after each player bet, is sent by Besoft to the game operator (Host), who returns the user's latest score. Otherwise, the game client will continue to wait.

Request method:(BeSoft -> Host):post

The request data format issued by Besoft: application/json

Host The returned data format : application/json

SLOTS type abolishes betting messages

Method URL

Provided by the game operator (Host).

https://{host}/[notify_url]
OR:
http://{host}/[notify_url]

Request Parameters

| Name | Type | Required |Description| |:--------:|:-----:|:--------:|:--------:| | action | int32 | Y |2- Operation identifier| | mode | int32 | Y |Game mode| | bet | double | Y |Bet scores, accurate to four valid floating points after the decimal point, and participate in score settlement| | uid | string(32) | Y |Player account| | gid | string | Y |Game ID| | ts | int64 | Y |Timestamp of the message request| | roundId | string | Y |Unique ID for each round of the game| | transId | string | Y |Unique transaction ID for each game transaction|

Return Resul

| Name | Type | Description | |:--------:|:-----:|:--------:| | action | int32 | 2 – Betting operation identifier | | status | int32 | status code,Type int32_tRef 6.6 Status Code | | balance | double | User's current latest score, accurate to four decimal places as a valid floating-point number | | currency | string(3) | USD currency code |

## Success Result

{
    "action": 2,
    "status": 1,
    "balance": 3000.0167,
    "currency": “USD”
}

## Failed Result

{
"status": 1001
}