Skip to content

New functions: getWithdrawableStake, withdrawSurplusStake and migrateStake #248

@Cafe137

Description

@Cafe137
/**
 * Gets the amount of withdrawable staked BZZ
 *
 * @param options HTTP request options, such as `headers` or `timeout`
 */
async getWithdrawableStake(options?: BeeRequestOptions): Promise<BZZ>
/**
 * Withdraws ALL surplus staked BZZ to the node wallet.
 *
 * Use the `getWithdrawableStake` method to check how much surplus stake is available.
 *
 * @param options HTTP request options, such as `headers` or `timeout`
 */
async withdrawSurplusStake(options?: BeeRequestOptions): Promise<TransactionId>
/**
 * Withdraws all staked BZZ to the node wallet.
 *
 * **Only available when the staking contract is paused and is in the process of being migrated to a new contract!**
 *
 * @param options HTTP request options, such as `headers` or `timeout`
 */
async migrateStake(options?: BeeRequestOptions): Promise<TransactionId>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions