Type Alias ClosePositionInstruction<TProgram, TAccountPositionAuthority, TAccountReceiver, TAccountPosition, TAccountPositionMint, TAccountPositionTokenAccount, TAccountTokenProgram, TRemainingAccounts>

ClosePositionInstruction: 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,
        TAccountTokenProgram extends string
            ? ReadonlyAccount<TAccountTokenProgram>
            : TAccountTokenProgram,
        ...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
  • TAccountTokenProgram extends string | IAccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
  • TRemainingAccounts extends readonly IAccountMeta<string>[] = []