Skip to main content
Use the built-in helpers when your app needs more than one simple transfer.

Jupiter swaps

TypeScript
destinationAccount is the recipient owner. The backend resolves the output ATA for SPL outputs or the native destination for unwrapped SOL.

Grouped operations

Use wallet.prepare(...) when you want the backend to shape a batch instead of calling single-operation helpers one by one. Both SDKs send this request to POST /transaction/prepare/batch.
TypeScript

When to use this page

Use swaps when the action is explicitly a Jupiter route. Use grouped operations when:
  • you want the backend to return one ordered plan
  • your app already knows several actions should happen together
  • you want one preparation response instead of several separate ones