findWithdrawAuthorityProgramAddress static method

ProgramAddress findWithdrawAuthorityProgramAddress(
  1. Pubkey stakePoolAddress
)

Find the withdraw authority account address of the given stakePoolAddress.

Implementation

static ProgramAddress findWithdrawAuthorityProgramAddress(
  final Pubkey stakePoolAddress,
) {
  return Pubkey.findProgramAddress(
    [
      stakePoolAddress.toBytes(),
      utf8.encode(withdrawAuthoritySeed),
    ],
    StakePoolProgram.programId,
  );
}