Constructors
constructor
Parameters
program: Program<StakeIdl>
address: PublicKey
Properties
address
address: PublicKey
Methods
Static cancelUnbond
Parameters
Returns TransactionInstruction[]
Static deriveUnbondingAccount
- deriveUnbondingAccount(program: Program<StakeIdl>, stakeAccount: PublicKey, seed: number): PublicKey
Parameters
program: Program<StakeIdl>
stakeAccount: PublicKey
seed: number
Returns PublicKey
Static isUnbonded
Parameters
Returns boolean
Static load
Parameters
program: Program<StakeIdl>
stakeAccount: PublicKey
seed: number
Static loadByStakeAccount
Parameters
program: Program<StakeIdl>
stakeAccount: PublicKey
Static useUnbondingAmountTotal
Static withCancelUnbond
Parameters
instructions: TransactionInstruction[]
rentReceiver: PublicKey
Returns Promise<void>
Static withUnbondStake
- withUnbondStake(instructions: TransactionInstruction[], stakePool: StakePool, stakeAccount: StakeAccount, tokenOwnerRecord: PublicKey, payer: PublicKey, unbondingSeed: number, amount?: null | BN): Promise<void>
Parameters
instructions: TransactionInstruction[]
tokenOwnerRecord: PublicKey
payer: PublicKey
unbondingSeed: number
amount: null | BN = null
Returns Promise<void>
Static withWithdrawUnbonded
- withWithdrawUnbonded(instructions: TransactionInstruction[], unbondingAccount: UnbondingAccount, stakeAccount: StakeAccount, stakePool: StakePool, tokenReceiver: PublicKey, rentReceiver: PublicKey): Promise<void>
Parameters
instructions: TransactionInstruction[]
tokenReceiver: PublicKey
rentReceiver: PublicKey
Returns Promise<void>
Static withdrawUnbonded
Parameters
Returns Promise<TransactionInstruction[]>
Creates an instance of UnbondingAccount.
UnbondingAccount