Function getOpenPositionWithMetadataInstruction
- getOpenPositionWithMetadataInstruction<
TAccountFunder extends string,
TAccountOwner extends string,
TAccountPosition extends string,
TAccountPositionMint extends string,
TAccountPositionMetadataAccount extends string,
TAccountPositionTokenAccount extends string,
TAccountWhirlpool extends string,
TAccountTokenProgram extends string,
TAccountSystemProgram extends string,
TAccountRent extends string,
TAccountAssociatedTokenProgram extends string,
TAccountMetadataProgram extends string,
TAccountMetadataUpdateAuth extends string,
TProgramAddress extends
Address = Address<"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc">,
>(
input: OpenPositionWithMetadataInput<
TAccountFunder,
TAccountOwner,
TAccountPosition,
TAccountPositionMint,
TAccountPositionMetadataAccount,
TAccountPositionTokenAccount,
TAccountWhirlpool,
TAccountTokenProgram,
TAccountSystemProgram,
TAccountRent,
TAccountAssociatedTokenProgram,
TAccountMetadataProgram,
TAccountMetadataUpdateAuth,
>,
config?: { programAddress?: TProgramAddress },
): OpenPositionWithMetadataInstruction<
TProgramAddress,
TAccountFunder,
TAccountOwner,
TAccountPosition,
TAccountPositionMint,
TAccountPositionMetadataAccount,
TAccountPositionTokenAccount,
TAccountWhirlpool,
TAccountTokenProgram,
TAccountSystemProgram,
TAccountRent,
TAccountAssociatedTokenProgram,
TAccountMetadataProgram,
TAccountMetadataUpdateAuth,
> Type Parameters
- TAccountFunder extends string
- TAccountOwner extends string
- TAccountPosition extends string
- TAccountPositionMint extends string
- TAccountPositionMetadataAccount extends string
- TAccountPositionTokenAccount extends string
- TAccountWhirlpool extends string
- TAccountTokenProgram extends string
- TAccountSystemProgram extends string
- TAccountRent extends string
- TAccountAssociatedTokenProgram extends string
- TAccountMetadataProgram extends string
- TAccountMetadataUpdateAuth extends string
- TProgramAddress extends Address = Address<"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc">
Parameters
- input: OpenPositionWithMetadataInput<
TAccountFunder,
TAccountOwner,
TAccountPosition,
TAccountPositionMint,
TAccountPositionMetadataAccount,
TAccountPositionTokenAccount,
TAccountWhirlpool,
TAccountTokenProgram,
TAccountSystemProgram,
TAccountRent,
TAccountAssociatedTokenProgram,
TAccountMetadataProgram,
TAccountMetadataUpdateAuth,
> Optional
config: { programAddress?: TProgramAddress }