Skip to content

Commit ca725eb

Browse files
committed
add transfer account
1 parent d3f08e2 commit ca725eb

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
@@ -902,6 +902,21 @@ export class PythStakingClient {
902902
.instruction();
903903
}
904904

905+
public async getTransferAccountInstruction(
906+
stakeAccountPositions: PublicKey,
907+
governanceAuthority: PublicKey,
908+
newOwner: PublicKey,
909+
): Promise<TransactionInstruction> {
910+
return this.stakingProgram.methods
911+
.transferAccount()
912+
.accountsPartial({
913+
stakeAccountPositions,
914+
governanceAuthority,
915+
newOwner,
916+
})
917+
.instruction();
918+
}
919+
905920
public async getUpdatePoolAuthorityInstruction(
906921
governanceAuthority: PublicKey,
907922
poolAuthority: PublicKey,

0 commit comments

Comments
 (0)