Skip to content
Skillpedia
APIs & servers (backend)7.0k Β· #13635

jupiter-swap-migration

What it does

This guide shows how to update existing Jupiter swap code from the old Metis v1 or Ultra endpoints to the unified Swap API v2. It explains the new base address and the endpoint changes, for developers whose swap code has stopped working or needs upgrading.

When to use it

  • βœ“When your app still calls the old Jupiter v1 quote or swap-instructions endpoints.
  • βœ“When your Jupiter swap stopped working after an API change.
  • βœ“When you need to move from the Ultra endpoints to the newer order or build endpoints.

Skill link

https://github.com/internet-court/internet-court-skill/blob/main/vendored/jupiter/jupiter-swap-migration/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/internet-court/internet-court-skill/blob/main/vendored/jupiter/jupiter-swap-migration/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œMy Jupiter swap stopped working because it calls the old v1 quote endpoint. How do I move it to v2?”

5 new skills a week. 1 minute to read.

How it works

The agent finds the old calls in your code, updates the base address, and switches to the unified build or order endpoint. The skill lists the renamed parameters and response changes to check.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Jupiter Swap Migration Guide

Migrate existing Jupiter swap integrations from Metis (v1) or Ultra to the unified Swap API v2.

Target Base URL: https://api.jup.ag/swap/v2 Auth: x-api-key from developers.jup.ag (unchanged)

Use/Do Not Use

Use when:

  • Migrating code that calls api.jup.ag/swap/v1/quote, api.jup.ag/swap/v1/swap-instructions, or ultra-api.jup.ag.
  • Updating Jupiter swap endpoints to v2.
  • Switching from Metis two-step flow to the unified /build or /order endpoint.

Do not use when:

  • Building a new Jupiter integration from scratch (use integrating-jupiter skill instead).
  • Working with non-swap Jupiter APIs (Lend, Trigger, Recurring, etc.).

Triggers: ultra, metis, ultra swap, ultra api, ultra-api.jup.ag, /ultra/v1, swap/v1, swap-instructions, migrate swap, ultra migration, metis migration, swap v1 to v2, v1 to v2, upgrade jupiter, swap-instructions deprecated, deprecated swap, old jupiter api, swap upgrade, update swap api, quote endpoint deprecated, swap stopped working, swap broken, ExactOut removed, swapMode removed, userPublicKey, parameter rename, addressLookupTable, response format changed


Migration Paths

Source Target Effort When to choose
Ultra β†’ /order GET /swap/v2/order + POST /swap/v2/execute Minimal (URL change only) Default for Ultra users
Metis β†’ /build GET /swap/v2/build Moderate (parameter + response mapping) Need transaction composability
Metis β†’ /order GET /swap/v2/order + POST /swap/v2/execute Moderate (flow change) Don't need tx modification, want managed execution

Path Details

Each path has a dedicated example with before/after code, parameter mappings, and response changes:


Post-Migration Checklist

  1. URL audit: Search codebase for ultra-api.jup.ag, /ultra/v1/, /swap/v1/quote, /swap/v1/swap-instructions β€” all should be replaced
  2. Parameter rename: userPublicKey β†’ taker (for /build path)
  3. swapMode removal: V2 only supports ExactIn. If using ExactOut, redesign the flow β€” this mode is no longer available
  4. slippageBps default: /build defaults to 50 bps if omitted. For /order, verify the default if your integration relies on a specific value
  5. Response field names: Verify your code uses inputAmountResult/outputAmountResult for the /execute response (the canonical v2 field names)
  6. ALT handling: If using /build, switch from addressLookupTableAddresses (array) to addressesByLookupTableAddress (object) β€” remove RPC ALT resolution code
  7. Fee event parsing: V2 instructions don't emit fee events β€” update any transaction parser that depends on them
  8. Route plan format: If parsing route plans, use bps field (canonical) instead of percent
  9. Error codes: Update error handling to match Swap v2 error codes
  10. Test: Run end-to-end swap on devnet/mainnet with small amount to verify

Sunset

Remove this skill once Jupiter decommissions the v1 (/swap/v1) endpoints and the Ultra (ultra-api.jup.ag) domain. At that point all integrations will already be on v2.

Review by: 2026-09-01 β€” check if v1/Ultra endpoints have been decommissioned.

References

Migration is split into three profile-targeted guides (the old single migration page no longer exists):

FAQ

Is this guide for a brand-new Jupiter integration?

No. For new code, the skill sends you to the general Jupiter integration guide.

Does the API key change during migration?

No. The skill says the x-api-key header stays the same.

What parts of the old code are most likely to break?

Renamed parameters, removed options such as ExactOut and swapMode, and changed response formats.

Details

Original description by the author

Migration guide from Jupiter Metis (v1) or Ultra to Swap API v2. Use when migrating existing Jupiter swap integrations, updating base URLs, or transitioning from quote+swap-instructions to the unified build endpoint.

repo: internet-court/internet-court-skill

Popularity

GitHub stars
7.0k
Ranking position
#13635
License
β€”
Updated
10/26/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills