Skip to content

Commit 9fecd71

Browse files
committed
add transfer account
1 parent 85dfc36 commit 9fecd71

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

governance/pyth_staking_sdk/src/pyth-staking-client.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,21 @@ export class PythStakingClient {
894894
.instruction();
895895
}
896896

897+
public async getTransferAccountInstruction(
898+
stakeAccountPositions: PublicKey,
899+
governanceAuthority: PublicKey,
900+
newOwner: PublicKey,
901+
): Promise<TransactionInstruction> {
902+
return this.stakingProgram.methods
903+
.transferAccount()
904+
.accountsPartial({
905+
stakeAccountPositions,
906+
governanceAuthority,
907+
newOwner,
908+
})
909+
.instruction();
910+
}
911+
897912
public async getUpdatePoolAuthorityInstruction(
898913
governanceAuthority: PublicKey,
899914
poolAuthority: PublicKey,

0 commit comments

Comments
 (0)