@@ -1954,7 +1954,7 @@ export class Bee {
19541954 }
19551955
19561956 /**
1957- * Cancel currently pending transaction
1957+ * Cancels a currently pending transaction
19581958 * @param transactionHash
19591959 * @param gasPrice
19601960 */
@@ -1975,21 +1975,52 @@ export class Bee {
19751975 }
19761976
19771977 /**
1978- * Gets the staked amount of BZZ (in PLUR unit) as number string.
1978+ * Gets the amount of staked BZZ
19791979 *
1980- * @param options
1980+ * @param options HTTP request options, such as `headers` or `timeout`
19811981 */
19821982 async getStake ( options ?: BeeRequestOptions ) : Promise < BZZ > {
19831983 return stake . getStake ( this . getRequestOptionsForCall ( options ) )
19841984 }
19851985
19861986 /**
1987- * Deposits given amount of BZZ token (in PLUR unit).
1987+ * Gets the amount of withdrawable staked BZZ.
1988+ *
1989+ * @param options HTTP request options, such as `headers` or `timeout`
1990+ */
1991+ async getWithdrawableStake ( options ?: BeeRequestOptions ) : Promise < BZZ > {
1992+ return stake . getWithdrawableStake ( this . getRequestOptionsForCall ( options ) )
1993+ }
1994+
1995+ /**
1996+ * Withdraws ALL surplus staked BZZ to the node wallet.
1997+ *
1998+ * Use the `getWithdrawableStake` method to check how much surplus stake is available.
1999+ *
2000+ * @param options HTTP request options, such as `headers` or `timeout`
2001+ */
2002+ async withdrawSurplusStake ( options ?: BeeRequestOptions ) : Promise < TransactionId > {
2003+ return stake . withdrawSurplusStake ( this . getRequestOptionsForCall ( options ) )
2004+ }
2005+
2006+ /**
2007+ * Withdraws all staked BZZ to the node wallet.
2008+ *
2009+ * **Only available when the staking contract is paused and is in the process of being migrated to a new contract!**
2010+ *
2011+ * @param options HTTP request options, such as `headers` or `timeout`
2012+ */
2013+ async migrateStake ( options ?: BeeRequestOptions ) : Promise < TransactionId > {
2014+ return stake . migrateStake ( this . getRequestOptionsForCall ( options ) )
2015+ }
2016+
2017+ /**
2018+ * Stakes the given amount of BZZ. Initial deposit must be at least 10 BZZ.
19882019 *
19892020 * Be aware that staked BZZ tokens can **not** be withdrawn.
19902021 *
1991- * @param amount Amount of BZZ token (in PLUR unit) to be staked. Minimum is 100_000_000_000_000_000 PLUR (10 BZZ) .
1992- * @param options
2022+ * @param amount Amount of BZZ tokens to be staked. If not providing a ` BZZ` instance, the amount is denoted in PLUR .
2023+ * @param options HTTP request options, such as `headers` or `timeout`
19932024 */
19942025 async depositStake (
19952026 amount : BZZ | NumberString | string | bigint ,
@@ -2007,9 +2038,9 @@ export class Bee {
20072038 }
20082039
20092040 /**
2010- * Get current status of node in redistribution game
2041+ * Gets current status of node in redistribution game
20112042 *
2012- * @param options
2043+ * @param options HTTP request options, such as `headers` or `timeout`
20132044 */
20142045 async getRedistributionState ( options ?: BeeRequestOptions ) : Promise < RedistributionState > {
20152046 return stake . getRedistributionState ( this . getRequestOptionsForCall ( options ) )
0 commit comments