Function getOpenPositionInstruction
- getOpenPositionInstruction<
TAccountFunder extends string,
TAccountOwner extends string,
TAccountPosition extends string,
TAccountPositionMint extends string,
TAccountPositionTokenAccount extends string,
TAccountWhirlpool extends string,
TAccountTokenProgram extends string,
TAccountSystemProgram extends string,
TAccountRent extends string,
TAccountAssociatedTokenProgram extends string,
TProgramAddress extends
Address = Address<"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc">,
>(
input: OpenPositionInput<
TAccountFunder,
TAccountOwner,
TAccountPosition,
TAccountPositionMint,
TAccountPositionTokenAccount,
TAccountWhirlpool,
TAccountTokenProgram,
TAccountSystemProgram,
TAccountRent,
TAccountAssociatedTokenProgram,
>,
config?: { programAddress?: TProgramAddress },
): OpenPositionInstruction<
TProgramAddress,
TAccountFunder,
TAccountOwner,
TAccountPosition,
TAccountPositionMint,
TAccountPositionTokenAccount,
TAccountWhirlpool,
TAccountTokenProgram,
TAccountSystemProgram,
TAccountRent,
TAccountAssociatedTokenProgram,
> Type Parameters
- TAccountFunder extends string
- TAccountOwner extends string
- TAccountPosition extends string
- TAccountPositionMint extends string
- TAccountPositionTokenAccount extends string
- TAccountWhirlpool extends string
- TAccountTokenProgram extends string
- TAccountSystemProgram extends string
- TAccountRent extends string
- TAccountAssociatedTokenProgram extends string
- TProgramAddress extends Address = Address<"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc">
Parameters
- input: OpenPositionInput<
TAccountFunder,
TAccountOwner,
TAccountPosition,
TAccountPositionMint,
TAccountPositionTokenAccount,
TAccountWhirlpool,
TAccountTokenProgram,
TAccountSystemProgram,
TAccountRent,
TAccountAssociatedTokenProgram,
> Optional
config: { programAddress?: TProgramAddress }