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

    Function buildRequestSwitchInstructions

    • Mirrors the legacy buildBundleRequestSwitchInstructionsWithVaults flow. This version-locked client does not perform the legacy runtime IDL capability probe for request_bundle_switch. Before these instructions, add an idempotent associated token account create using buildEnsureAssociatedTokenAccountInstruction or createAssociatedTokenAccountIdempotentInstruction. processSwitch validates the user's asset token account and transfers the redemption there if the target bundle cannot accept the switch.

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