"DragonTiger" 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

Merchant Player Name

id

string

Merchant Player ID

amount

number

Bet Amount

bets

number[]

Betting list [Dragon 0, Tiger 1, and 2]

ticket

number

Bet multiplier

currency

string

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

Example

{
	action: 'sendData', 
	data:{
		op:"Bet",
		data:[
			{
				gameId:number,        
				curGameId:number,     
				userId:number,       
			        name:string,      
			        id:string,         
				amount:number,         
				bets:  [0,1,2], 
				ticket: 10,
				currency:"usdt",	
				 
			}
		 ]
	}
}

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 lottery numbers (Dragon 0, Tiger 1, and 2)

Example

{
	action: 'sendData', 
	data: {
		op:"Bet",
		data:{
			gameId:123123			//gameid
			roundId:202504090002,		//Issue number
			nums:[0]		//Digital lottery numbers (Dragon 0, Tiger 1, and 2)2)
		} 
	}
}

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

Merchant Player Name

id

string

Merchant Player ID

amount

number

Bet Amount

bets

number[]

Betting list [Dragon 0, Tiger 1, and 2]

ticket

number

Bet multiplier

currency

string

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

Example

{
	action: 'sendData', 
	data:{
		op:"Bet",
		data:[
			{
				gameId:number,        
				curGameId:number,     
				userId:number,       
			        name:string,      
			        id:string,         
				amount:number,         
				bets:  [0,1,2], 
				ticket: 10,
				currency:"usdt",	
				 
			}
		 ]
	}
}

Step 1 of forwarding the player's betting information: just the betting information of op: "Bet".

Last updated