"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

curGameId

number

Current game id

userId

number

Player ID

name

string

Third-party player name

id

string

Third-party player ID

amount

number

Bet amount

currency

string

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

bets[key1][key2]

number

Key1 Area Numbers: 1: Double-Sided Disc; 2: Odd Numbers; 3: 1+2 Combination; 4: 1+2 Numbers;

Key2 Area Index: Double-Sided Disc: 1-6; Odd Numbers------------ First Ball: 1-10, Second Ball: 11-20, And so on to the Tenth Ball: 99-100; 1+2 Combination-------------- 1 Odd, 2 Even, 3 Big, 4 Small; 1+2 Numbers: 1 represents 3, 2 represents 4, and so on.

Example


{
	action: 'sendData', 
	data:{
		op:"Bet",
		data:{
			gameId:123,         
			curGameId:123,       
			userId:123,        
		        name:"lily",        
		        id:"1234",              
			amount:123,          
			currency:"usdt",        
	      
			bets:{
				{1{1}}
			}[]
		 }
	}
}

2、Lottery result notification

Lottery result notification

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

Data parameter description

Name
Type
Description

gameId

number

game id

roundId

number

Issue number

nums

number[]

10 digital displays

Example

{
	action: 'sendData', 
	data: {
		op:"Bet",
		data:{
			gameId:123123			//gameid
			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

Third-party player ID

name

string

Third-party player name

userId

number

userID

channel

string

Channel Name

gameID

number

game ID

amount

number

Bet Amount

currency

string

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

multi

number

multiple

payout

number

reward

Example

{
	action: 'sendData', 
	data: {
		op:"Reward",
		data:{
			userId:123,   
			id:123,      
			name:"PlayerName",
			channel:"Channel",称
			gameID:10001,
			amount:1,
			currency:"usdt",
			multi:1,
			payout:1
		} 
	}
}

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

gameId

number

Game ID

curGameId

number

Current game id

userId

number

Player ID

name

string

Third-party player name

id

string

Third-party player ID

amount

number

Bet amount

currency

string

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

bets[key1][key2]

number

Key1 Area Numbers: 1: Double-Sided Disc; 2: Odd Numbers; 3: 1+2 Combination; 4: 1+2 Numbers;

Key2 Area Index: Double-Sided Disc: 1-6; Odd Numbers------------ First Ball: 1-10, Second Ball: 11-20, And so on to the Tenth Ball: 99-100; 1+2 Combination-------------- 1 Odd, 2 Even, 3 Big, 4 Small; 1+2 Numbers: 1 represents 3, 2 represents 4, and so on.

Example


{
	action: 'sendData', 
	data:{
		op:"Bet",
		data:{
			gameId:123,         
			curGameId:123,       
			userId:123,        
		        name:"lily",        
		        id:"1234",              
			amount:123,          
			currency:"usdt",        
	      
			bets:{
				{1{1}}
			}[]
		 }
	}
}

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

Last updated