"OneMRace" Half-Screen Event Description

Used in live broadcast apps to request period results, player betting information, win/loss results, and follow-up betting operations. It facilitates user interaction within the app.

1、Players' betting results notification

The platform obtains the betting information of each player and then synchronizes it to the live broadcast room.

Step-----— op:"Bet",

Data parameter description

Name
Type
Description

gameId

number

Game ID

name

string

Merchant Player Name

id

string

Merchant Player ID

betZone

number

Area code: 1: double-sided disk; 2: single number; 3: 1+2 integration; 4: 1+2 numbers;

zoneIndex

number

//Index of corresponding area: Double-sided disk: 1~6; Odd number------------ First ball: 1-10, Second ball 11-20, And so on to the tenth ball: 99-100; 1+2 integration-------------- 1 odd 2 even 3 big 4 small; 1+2 number: 1 represents 3, 2 represents 4, and so on;

currency

string

Currency name (USDT, etc., see the currency list for details)

amount

number

Bet amount

ticket

number

Number of bets

Example

{
	action: 'sendData', 
	data:{
		op:"Bet",
		data:[
			{
				gameId:number,                  //Game ID
				name:"hhsayy22"			//Merchant Player Name
				id:"12132111313",		//Merchant Player ID
				// Betting list
				bets:{
					betZone:1, 		//Area No. 1: Double-sided disk
					zoneIndex:2, 		//The index of the corresponding area.
					currency:"usdt", 	//Currency name (USDT, etc., see the currency list for details)...
					amount:10, 		//Bet amount
					ticket:10		//Number of bets
				} 
			}
		 ]
	}
}

2、Lottery result notification

Lottery result notification

Step-----— op:"ShowRound",

Data parameter description

Name
Type
Description

roundId

number

Issue number

nums

number[]

10 digital displays

Example

{
	action: 'sendData', 
	data: {
		op:"Bet",
		data:{
			roundId:202504090002,		//Issue number
			nums:[1,3,5,2,6,9,0,4,7,8]		//10 digital displays
		} 
	}
}

3、Winning player winning amount notification

Used to synchronize winning amount of players in the live broadcast room

Step-----— op:"Reward",

Data parameter description

Name
Type
Description

id

string

Merchant Player ID

name

string

Merchant Player Name

currency

string

Currency name (USDT, etc., see the currency list for details)

money

number

The player's winning amount

Example

{
	action: 'sendData', 
	data: {
		op:"Bet",
		data:{
			id:"12132111313",		//Merchant Player ID
			name:"hhsayy22"			//Merchant Player Name
			currency:"usdt,			//Currency name (USDT...)
			money:0.05			//The amount the player wins this time
		} 
	}
}

4、Player follow-up investment request

Refer to the demo code:

// Follow-up investment
const FollowUpInvestment = () => {
    if(!postData.data.data){
        return;
    }
    iframe.contentWindow.postMessage(JSON.stringify(postData), '*');
}

Step-----— op:"Follow",

Data parameter description

Name
Type
Description

betZone

number

Area code: 1: double-sided disk; 2: single number; 3: 1+2 integration; 4: 1+2 numbers;

zoneIndex

number

//Index of corresponding area: Double-sided disk: 1~6; Odd number------------ First ball: 1-10, Second ball 11-20, And so on to the tenth ball: 99-100; 1+2 integration-------------- 1 odd 2 even 3 big 4 small; 1+2 number: 1 represents 3, 2 represents 4, and so on;

currency

string

Currency name (USDT, etc., see the currency list for details)

amount

number

Amount of follow-up investment

ticket

number

Number of follow-up bets

Example

{
	action: 'sendData', 
	data:{
		op:"Follow",
		data:[
			{
				betZone:1, 		//Area No. 1: Double-sided disk
				zoneIndex:2, 		//The index of the corresponding area.
				currency:"usdt", 	//Currency name (USDT, etc., see the currency list for details)...
				amount:10, 		//Bet amount
				ticket:10		//Number of bets
			}
		 ]
	}
}

Step 1 of forwarding the betting information of the follow-up player: just follow the betting information of op: "Bet".

Last updated