findWithdrawAuthorityProgramAddress static method
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,
);
}