Interface StakeDiceState

Describes state of the stake dice.

interface StakeDiceState {
    @type: "stakeDiceState";
    current_streak: number;
    prize_per_mille: number[];
    stake_toncoin_amount: number;
    state_hash: string;
    streak_prize_per_mille: number;
    suggested_stake_toncoin_amounts: number[];
}

Properties

@type: "stakeDiceState"
current_streak: number

The number of rolled sixes towards the streak; 0-2.

prize_per_mille: number[]

The number of Toncoins received by the user for each 1000 Toncoins staked if the dice outcome is 1-6 correspondingly; may be empty if the stake dice can't be sent by the current user.

stake_toncoin_amount: number

The Toncoin amount that was staked in the previous roll; in the smallest units of the currency.

state_hash: string

Hash of the state to use for sending the next dice; may be empty if the stake dice can't be sent by the current user.

streak_prize_per_mille: number

The number of Toncoins received by the user for each 1000 Toncoins staked if the dice outcome is 6 three times in a row with the same stake.

suggested_stake_toncoin_amounts: number[]

The amounts of Toncoins that are suggested to be staked; in the smallest units of the currency.