@neutral-trade/sdk - v1.0.13
    Preparing search index...

    Function buildRequestWithdrawInstruction

    • Mirrors the legacy buildBundleRequestWithdrawInstructionWithVault flow. This helper rejects a zero-share result instead of forwarding it to the program as the legacy helper did. Prepend an idempotent associated token account create, using buildEnsureAssociatedTokenAccountInstruction or createAssociatedTokenAccountIdempotentInstruction, so the user's asset token account exists when the withdrawal is processed after its cooldown.

      Returns Promise<
          Instruction<
              string,
              readonly (AccountLookupMeta<string, string> | AccountMeta<string>)[],
          >,
      >