Interface StakeDiceState

Describes state of the stake dice.

interface StakeDiceState {
    @type: "stakeDiceState";
    current_streak: number;
    prize_per_mille: number[];
    stake_gram_amount: number;
    state_hash: string;
    streak_prize_per_mille: number;
    suggested_stake_gram_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 Grams received by the user for each 1000 Grams 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_gram_amount: number

The amount of TON Grams 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 Grams received by the user for each 1000 Grams staked if the dice outcome is 6 three times in a row with the same stake.

suggested_stake_gram_amounts: number[]

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