Skip to content

QDUEL

XAAA…XNMD
Index 23QDUELDeployed199Destruction10000
Procedures
7
Functions
6
Custom types
5

Procedures

CreateRoominput 1

Input4

allowedPlayerid
stakesint64
raiseStepsint64
maxStakesint64

Output1

returnCodeEReturnCode
ConnectToRoominput 2

Input1

roomIdid

Output2

winnerid
returnCodeEReturnCode
SetPercentFeesinput 3

Input4

devFeePercentBpsuint8
burnFeePercentBpsuint8
shareholdersFeePercentBpsuint8
percentScaleuint16

Output1

returnCodeEReturnCode
SetTTLHoursinput 4

Input1

ttlHoursuint8

Output1

returnCodeEReturnCode
Depositinput 5

Input0

None

Output1

returnCodeEReturnCode
Withdrawinput 6

Input1

amountsint64

Output1

returnCodeEReturnCode
CloseRoominput 7

Input0

None

Output1

returnCodeEReturnCode

Functions

GetPercentFeesinput 1

Input0

None

Output5

devFeePercentBpsuint8
burnFeePercentBpsuint8
shareholdersFeePercentBpsuint8
percentScaleuint16
returnCodeEReturnCode
GetRoomsinput 2

Input0

None

Output2

roomsstruct[512]
returnCodeEReturnCode
GetTTLHoursinput 3

Input0

None

Output2

ttlHoursuint8
returnCodeEReturnCode
GetUserProfileinput 4

Input1

userIdid

Output7

roomIdid
depositedAmountuint64
lockeduint64
stakeuint64
raiseStepuint64
maxStakeuint64
returnCodeEReturnCode
CalculateRevenueinput 5

Input1

amountuint64

Output4

devFeeuint64
burnFeeuint64
shareholdersFeeuint64
winneruint64
GetLastWinnersinput 6

Input0

None

Output2

winnersstruct[128]
returnCodeEReturnCode

Custom types

RoomInfostruct · 120 B

Fields6

roomIdid
ownerid
allowedPlayerid
amountsint64
closeTimeruint64
lastUpdateDateAndTime
WinnerDatastruct · 104 B

Fields4

player1id
player2id
winnerid
revenueuint64
UserDatastruct · 136 B

Fields8

userIdid
roomIdid
allowedPlayerid
depositedAmountsint64
lockedsint64
stakesint64
raiseStepsint64
maxStakesint64
RandomDatastruct · 584 B

Fields3

entropyuint64[64]
playersid[2]
tickuint32

EReturnCode

enum · uint8

SUCCESSACCESS_DENIEDINVALID_VALUEUSER_ALREADY_EXISTSUSER_NOT_FOUNDINSUFFICIENT_FREE_DEPOSITROOM_INSUFFICIENT_DUEL_AMOUNTROOM_NOT_FOUNDROOM_FULLROOM_FAILED_CREATEROOM_FAILED_GET_WINNERROOM_ACCESS_DENIEDROOM_FAILED_CALCULATE_REVENUESTATE_LOCKEDUNKNOWN_ERROR
Glyph explorer · direct-peer Qubic index
OpenAPIIndexer statusAmounts are integer QUBIC · timestamps local unless noted