Skip to content

New functions: getWithdrawableStake, withdrawSurplusStake and migrateStake #248

Closed

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>

Activity

  1. changed the title [-]New functions: `getWithdrawableStake`, `withdrawSurpluStake` and `migrateStake`[/-] [+]New functions: `getWithdrawableStake`, `withdrawSurplusStake` and `migrateStake`[/+] on Jun 25, 2025
  2. linked a pull request that will close this issuefeat: update to bee-js v13 #266on Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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