Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • UnbondingAccount

Index

Constructors

Properties

address: PublicKey
program: Program<StakeIdl>
stakePool: StakePool
tokens: BN = ...

The total amount of tokens unbonding

unbondingAccount: UnbondingAccountInfo

Methods

  • deriveUnbondingAccount(program: Program<StakeIdl>, stakeAccount: PublicKey, seed: number): PublicKey
  • randomSeed(): number
  • withUnbondStake(instructions: TransactionInstruction[], stakePool: StakePool, stakeAccount: StakeAccount, tokenOwnerRecord: PublicKey, payer: PublicKey, unbondingSeed: number, amount?: null | BN): Promise<void>
  • TODO:

    static
    memberof

    UnbondingAccount

    Parameters

    • instructions: TransactionInstruction[]
    • stakePool: StakePool
    • stakeAccount: StakeAccount
    • tokenOwnerRecord: PublicKey
    • payer: PublicKey
    • unbondingSeed: number
    • amount: null | BN = null

    Returns Promise<void>

  • withWithdrawUnbonded(instructions: TransactionInstruction[], unbondingAccount: UnbondingAccount, stakeAccount: StakeAccount, stakePool: StakePool, tokenReceiver: PublicKey, rentReceiver: PublicKey): Promise<void>

Generated using TypeDoc