Function getClosePositionInstruction
- getClosePositionInstruction<
TAccountPositionAuthority extends string,
TAccountReceiver extends string,
TAccountPosition extends string,
TAccountPositionMint extends string,
TAccountPositionTokenAccount extends string,
TAccountTokenProgram extends string,
TProgramAddress extends
Address = Address<"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc">,
>(
input: ClosePositionInput<
TAccountPositionAuthority,
TAccountReceiver,
TAccountPosition,
TAccountPositionMint,
TAccountPositionTokenAccount,
TAccountTokenProgram,
>,
config?: { programAddress?: TProgramAddress },
): ClosePositionInstruction<
TProgramAddress,
TAccountPositionAuthority,
TAccountReceiver,
TAccountPosition,
TAccountPositionMint,
TAccountPositionTokenAccount,
TAccountTokenProgram,
> Type Parameters
- TAccountPositionAuthority extends string
- TAccountReceiver extends string
- TAccountPosition extends string
- TAccountPositionMint extends string
- TAccountPositionTokenAccount extends string
- TAccountTokenProgram extends string
- TProgramAddress extends Address = Address<"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc">