본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)7.0k · #13635

jupiter-swap-migration

하는 일

이 가이드는 기존 Jupiter 스왑 코드를 오래된 Metis v1이나 Ultra 엔드포인트에서 통합 Swap API v2로 업데이트하는 방법을 보여 줍니다. 새 기본 주소와 엔드포인트 변경 사항을 설명하며, 스왑 코드가 작동을 멈췄거나 업그레이드가 필요한 개발자를 위한 가이드입니다.

사용하는 경우

  • ✓앱이 여전히 오래된 Jupiter v1 견적이나 스왑 명령 엔드포인트를 호출할 때.
  • ✓API 변경 후 Jupiter 스왑이 작동하지 않게 되었을 때.
  • ✓Ultra 엔드포인트에서 최신 주문이나 빌드 엔드포인트로 옮겨야 할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

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.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 Jupiter 스왑이 오래된 v1 견적 엔드포인트를 호출해서 작동을 멈췄습니다. v2로 어떻게 옮기나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 코드에서 오래된 호출을 찾고, 기본 주소를 업데이트한 뒤 통합 빌드나 주문 엔드포인트로 바꿉니다. 스킬은 이름이 바뀐 매개변수와 응답 변경 사항 중 확인할 항목을 나열합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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):

자주 묻는 질문

이 가이드는 새로 시작하는 Jupiter 연동용인가요?

아니요. 새 코드라면 스킬은 일반 Jupiter 연동 가이드를 보라고 안내합니다.

이전 과정에서 API 키가 바뀌나요?

아니요. 스킬은 x-api-key 헤더가 그대로 유지된다고 말합니다.

오래된 코드에서 어떤 부분이 가장 쉽게 깨지나요?

이름이 바뀐 매개변수, ExactOut과 swapMode 같이 제거된 옵션, 바뀐 응답 형식입니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
7.0k
순위
#13635
라이선스
—
업데이트
2026. 10. 26.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬