"OverUnder" 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.balance.balance

number

Balance

bets.balance.currency

string

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

bets.bets[key1][key2].bet

number

key1: Area number 1: Points; 2: Sum; 3: Big/Small; 4: Odd/Even; 5: Dice Surround; 6: Long Card; 7: Short Card

key2: Area index Points: 1-6; Sum: 4-17; Big/Small: 1 Small, 2 Big; Odd/Even: 1 Odd, 2 Even; Dice Surround: 0-6 (0 means any three); Long Card: 1-15; Short Card: 1-6

bet: Number of bets

bets.bets[key1][key2].multi

number

key1: Area number 1: Points; 2: Sum; 3: Big/Small; 4: Odd/Even; 5: Dice Surround; 6: Long Card; 7: Short Card

key2: Area index Points: 1-6; Sum: 4-17; Big/Small: 1 Small, 2 Big; Odd/Even: 1 Odd, 2 Even; Dice Surround: 0-6 (0 represents any triple); Long Card: 1-15; Short Card: 1-6

multi: Multiplier (placeholder data during betting)

bets.amount

number

Bet amount

bets.currency

string

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

Example

{
	action: 'sendData', 
	data:{
		op:"Bet",
		data:{
			gameId:123,            
			curGameId:123123,
			userId:12322,          
			name:"hhsayy22"		
			id:"12132111313",	
			amoung:213123,          
			currency:"usdt",        
			bets:  {
					amount:123123,
					currency:"ustd",
					balance:{
						balance:1123,
						currency:"ustd"
					},
			                2: {
			                	6: {
				                    bet: 10,
				                    multi: 0
				                }
			            	}
			        }
		}
	}
}

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[]

Digital display, the points of the three dice for each game result, each point is an integer from 1 to 6, example: [2,5,6]

Example

{
	action: 'sendData', 
	data: {
		op:"Bet",
		data:{
			gameId:123123			//gameid
			roundId:202504090002,		//Issue number
			nums:[2,5,6]		//Digital display, the points of the three dice in each game, each point is an integer from 1 to 6, example: [2,5,6]
		} 
	}
}

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.balance.balance

number

Balance

bets.balance.currency

string

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

bets.bets[key1][key2].bet

number

key1: Area number 1: Points; 2: Sum; 3: Big/Small; 4: Odd/Even; 5: Dice Surround; 6: Long Card; 7: Short Card

key2: Area index Points: 1-6; Sum: 4-17; Big/Small: 1 Small, 2 Big; Odd/Even: 1 Odd, 2 Even; Dice Surround: 0-6 (0 means any three); Long Card: 1-15; Short Card: 1-6

bet: Number of bets

bets.bets[key1][key2].multi

number

key1: Area number 1: Points; 2: Sum; 3: Big/Small; 4: Odd/Even; 5: Dice Surround; 6: Long Card; 7: Short Card

key2: Area index Points: 1-6; Sum: 4-17; Big/Small: 1 Small, 2 Big; Odd/Even: 1 Odd, 2 Even; Dice Surround: 0-6 (0 represents any triple); Long Card: 1-15; Short Card: 1-6

multi: Multiplier (placeholder data during betting)

bets.amount

number

Bet amount

bets.currency

string

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

Example

{
	action: 'sendData', 
	data:{
		op:"Floow",
		data:{
			gameId:123,            
			curGameId:123123,
			userId:12322,          
			name:"hhsayy22"		
			id:"12132111313",	
			amoung:213123,          
			currency:"usdt",        
			bets:  {
					amount:123123,
					currency:"ustd",
					balance:{
						balance:1123,
						currency:"ustd"
					},
			                2: {
			                	6: {
				                    bet: 10,
				                    multi: 0
				                }
			            	}
			        }
		}
	}
}

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

Last updated