Type Alias ClosePositionWithTokenExtensionsInstruction<TProgram, TAccountPositionAuthority, TAccountReceiver, TAccountPosition, TAccountPositionMint, TAccountPositionTokenAccount, TAccountToken2022Program, TRemainingAccounts>

ClosePositionWithTokenExtensionsInstruction: IInstruction<TProgram> & IInstructionWithData<
    Uint8Array,
> & IInstructionWithAccounts<
    [
        TAccountPositionAuthority extends string
            ? ReadonlySignerAccount<TAccountPositionAuthority> & IAccountSignerMeta<
                TAccountPositionAuthority,
            >
            : TAccountPositionAuthority,
        TAccountReceiver extends string
            ? WritableAccount<TAccountReceiver>
            : TAccountReceiver,
        TAccountPosition extends string
            ? WritableAccount<TAccountPosition>
            : TAccountPosition,
        TAccountPositionMint extends string
            ? WritableAccount<TAccountPositionMint>
            : TAccountPositionMint,
        TAccountPositionTokenAccount extends string
            ? WritableAccount<TAccountPositionTokenAccount>
            : TAccountPositionTokenAccount,
        TAccountToken2022Program extends string
            ? ReadonlyAccount<TAccountToken2022Program>
            : TAccountToken2022Program,
        ...TRemainingAccounts,
    ],
>

Type Parameters

  • TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS
  • TAccountPositionAuthority extends string | IAccountMeta<string> = string
  • TAccountReceiver extends string | IAccountMeta<string> = string
  • TAccountPosition extends string | IAccountMeta<string> = string
  • TAccountPositionMint extends string | IAccountMeta<string> = string
  • TAccountPositionTokenAccount extends string | IAccountMeta<string> = string
  • TAccountToken2022Program extends string | IAccountMeta<string> = string
  • TRemainingAccounts extends readonly IAccountMeta<string>[] = []