Comma-separated list of DEXes to restrict routing to.
Labels are case sensitive (SolFi, not solfi). An unrecognised label is not a validation error: it returns 400 {"error": "No routes found"}, indistinguishable from a pair with no liquidity.
Mutually exclusive with excludeDexes. Passing both returns 400 {"error": "dexes and excludeDexes are mutually exclusive"}.
Full list of DEXes here using the /program-id-to-label endpoint.
The Solana transaction version to build for, "0" or "1". Defaults to "0".
"1" returns v1 instructions: computeBudgetInstructions is empty and addressesByLookupTableAddress is {} (v1 inlines accounts, no lookup tables). Set the compute budget, including the returned computeUnitPrice, on the message config. Build with a v1-capable SDK (@solana/kit v8 or later).
Compute unit price instruction (does not include compute unit limit). Empty when transactionVersion is "1"; use computeUnitPrice on the message config instead.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Jupiter Developers","colors":{"primary":"#00BEF0","light":"#C7F284","dark":"#000000"},"logo":{"light":"https://mintcdn.com/jupiter/mrenEfoqnubhOTHf/logo/logo.png?fit=max\u0026auto=format\u0026n=mrenEfoqnubhOTHf\u0026q=85\u0026s=e745e60a4186bc382d3d5d9bdff9273a","dark":"https://mintcdn.com/jupiter/mrenEfoqnubhOTHf/logo/logo.png?fit=max\u0026auto=format\u0026n=mrenEfoqnubhOTHf\u0026q=85\u0026s=e745e60a4186bc382d3d5d9bdff9273a","href":"https://developers.jup.ag/"},"favicon":"https://mintcdn.com/jupiter/mrenEfoqnubhOTHf/favicon.png?fit=max\u0026auto=format\u0026n=mrenEfoqnubhOTHf\u0026q=85\u0026s=453e41111d621d16c4f196f9e772ce58","api":{"playground":{"display":"interactive"}},"appearance":{"default":"dark"},"navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://developers.jup.ag/portal"}},"footer":{"socials":{"x":"https://x.com/JupiterExchange","discord":"https://discord.gg/jup","telegram":"https://t.me/jup_dev","github":"https://github.com/jup-ag","youtube":"https://www.youtube.com/@JupiterOnchain"},"links":[{"items":[{"label":"Support","href":"/docs/resources/support"},{"label":"Guidelines","href":"/docs/legal"},{"label":"Legal","href":"/docs/legal/sdk-api-license-agreement"},{"label":"Brand Kit","href":"/docs/resources/brand-kit"},{"label":"Status","href":"https://status.jup.ag"}]}]},"seo":{"metatags":{"og:image":"/logo/og.png","og:type":"website","og:site_name":"Jupiter Developers","twitter:card":"summary_large_image","twitter:site":"@JupiterExchange","twitter:image":"/logo/og.png","keywords":"Jupiter, Jupiter Developer Platform, Jupiter API, Jupiter SDK, Solana API, Solana swap API, Solana price API, Solana token API, prediction market API, Solana DeFi API, crypto API, Jupiter Swap, Jupiter Ultra, Jupiter Lend, Jupiter Perps, Jupiter Studio, Jupiter Plugin, Jupiter Wallet Kit, Jupiter Referral Program"}},"banner":{"content":"Manage your API keys, billing, and usage on the [**Developer Platform**](https://developers.jup.ag/portal). Questions? Reach us via [**Support**](/docs/resources/support)."},"contextual":{"options":["copy","view","chatgpt","claude","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"jupiter","hasAudioNarration":false,"actualSubdomain":"jupiter","customDomains":["developers.jup.ag"],"gitSource":{"type":"github","owner":"jup-ag","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"CONTEXTUAL_FEEDBACK":{"status":"DISABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aef297ac11f500273005720","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"Docs","count":193},{"language":"default","tag":"API Reference","count":77},{"language":"default","tag":"Lend","count":64},{"language":"default","tag":"Prediction","count":44},{"language":"default","tag":"LO \u0026 DCA","count":30},{"language":"default","tag":"Swap","count":27},{"language":"default","tag":"Get Started","count":25},{"language":"default","tag":"More","count":23},{"language":"default","tag":"Resources","count":21},{"language":"default","tag":"Earn","count":18}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"th{color:black!important}.dark th{color:white!important}@media screen and (min-width: 768px){#banner button,#banner [aria-label*=\"close\"],#banner [aria-label*=\"dismiss\"],#banner [data-dismiss],#banner button[type=\"button\"]{display:none!important}}@media screen and (max-width: 767px){[data-radix-menu-content]{max-height:80vh!important}}@media screen and (min-width: 768px){[data-radix-menu-content]{max-height:600px!important}}"}],"page":{"pagePath":"api-reference/swap/build","slug":"/api-reference/swap/build","pageMetadata":{"openapi":"openapi-spec/swap/v2/swap.yaml get /build","title":"Build Transaction","description":"Get a swap quote with raw instructions for building custom transactions","llmsDescription":"GET /build endpoint for Jupiter Swap API V2 at api.jup.ag/swap/v2/build. Returns a swap quote with raw instructions (computeBudgetInstructions, setupInstructions, swapInstruction, cleanupInstruction, otherInstructions) and address lookup tables. Integrators build their own transactions, add custom instructions (CPI, memo, transfer), simulate, sign, and send via their own RPC. Metis-only routing. No Jupiter swap fees. /execute is not available for /build transactions.","href":"/api-reference/swap/build"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Get a swap quote with raw instructions for building custom transactions\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"openapi-spec/swap/v2/swap.yaml get /build","title":"Build Transaction","description":"Get a swap quote with raw instructions for building custom transactions","llmsDescription":"GET /build endpoint for Jupiter Swap API V2 at api.jup.ag/swap/v2/build. Returns a swap quote with raw instructions (computeBudgetInstructions, setupInstructions, swapInstruction, cleanupInstruction, otherInstructions) and address lookup tables. Integrators build their own transactions, add custom instructions (CPI, memo, transfer), simulate, sign, and send via their own RPC. Metis-only routing. No Jupiter swap fees. /execute is not available for /build transactions.","href":"/api-reference/swap/build"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/jupiter/5d1fbe037184af90/generate-llms-from-docs.js","/docs/_mintlify/custom/jupiter/4b0472a73cb92cca/check-redirects.js"],"openApiReferenceData":{"operation":{"operationId":"GetBuild","tags":["Swap"],"summary":"Build Transaction","description":"Get a swap quote with raw instructions for building custom transactions","security":["45a33a30-9a5e-486f-bb2d-916e2c932460"],"parameters":["f4fe3aaf-5585-4e91-8ccb-ec48b694d042","009d8829-071d-414e-9937-775a96becb20","c28773d9-85b4-4935-bfe9-92add58b3f23","6a097730-3e30-4dbf-8ac3-0267f2c71fd5","3cd60eca-dfba-45e5-8643-f0e5cd6f0945","bfb3f08a-8319-4b18-b061-4eed3736f657","32b2e30a-0180-42ce-bb15-c352c8f10a84","3341ae41-689f-468a-bfcc-63da9158fded","df588008-fa6f-4715-9dcf-33c5de87d44b","391cab5a-e61a-4f44-9c7a-f6f034089673","45cafeb2-bbce-4419-982a-b89d5c48f65f","058dcede-9a1a-4def-a428-04adac49d259","28b5ce02-4b3c-4e76-8859-4b6934b3a40b","c9dc86c4-cc4b-4217-b954-ea0529f6e3d5","af847f2e-ae5f-4b54-93ad-d8e516da09d1","77b5fd20-bf33-43f8-aae6-0d5528685009","06d64212-f93e-473f-9cb3-c340bd70df6e","20b956a6-3ef2-4e0f-9f54-dc4e53f6f276","bbd03b16-1eff-4ea8-87c5-e9af2ce8e036","8aeb5205-d222-4c20-a6b4-2fa70de24747"],"responses":{"200":"58bc5101-1247-4ed7-b83d-7af11e59409b","400":"fc96f4a7-a17b-4e38-9065-7aee472baba5"},"method":"get","type":"path","servers":["ef3fea8f-edef-47a1-b05d-ed6568b0584c"],"path":"/build","baseUrlOptions":["https://api.jup.ag/swap/v2"],"title":"Build Transaction","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"f4fe3aaf-5585-4e91-8ccb-ec48b694d042":{"name":"inputMint","in":"query","required":true,"schema":{"type":"string","isRequired":true,"description":"The mint address of the input token","uniqueKey":"","typeLabel":"string"},"description":"The mint address of the input token","example":"So11111111111111111111111111111111111111112"},"009d8829-071d-414e-9937-775a96becb20":{"name":"outputMint","in":"query","required":true,"schema":{"type":"string","isRequired":true,"description":"The mint address of the output token","uniqueKey":"","typeLabel":"string"},"description":"The mint address of the output token","example":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"},"c28773d9-85b4-4935-bfe9-92add58b3f23":{"name":"amount","in":"query","required":true,"schema":{"type":"string","isRequired":true,"description":"The amount to swap in the smallest unit of the input token","uniqueKey":"","typeLabel":"string"},"description":"The amount to swap in the smallest unit of the input token","example":"1000000000"},"6a097730-3e30-4dbf-8ac3-0267f2c71fd5":{"name":"taker","in":"query","required":true,"schema":{"type":"string","isRequired":true,"description":"Public key of the user initiating the swap.","uniqueKey":"","typeLabel":"string"},"description":"Public key of the user initiating the swap.","example":"GkwFnmMDvn3HGMpJpWBg8tgJxr3NxNvg3AXxvXVPbRGJ"},"3cd60eca-dfba-45e5-8643-f0e5cd6f0945":{"name":"slippageBps","in":"query","schema":{"oneOf":[{"type":"string","default":50,"enum":["rtse"],"description":"Slippage tolerance in basis points. Defaults to 50.","uniqueKey":"oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"number","default":50,"maximum":10000,"minimum":0,"description":"Slippage tolerance in basis points. Defaults to 50.","uniqueKey":"oneOf.1","typeLabel":"number"}],"uniqueKey":"","typeLabel":"enum\u003cstring> | number"},"description":"Slippage tolerance in basis points. Defaults to 50."},"bfb3f08a-8319-4b18-b061-4eed3736f657":{"name":"mode","in":"query","schema":{"type":"string","enum":["fast"],"description":"Quoting mode. \"fast\" trades quote optimality for reduced latency.\n","uniqueKey":"","typeLabel":"enum\u003cstring>"},"description":"Quoting mode. \"fast\" trades quote optimality for reduced latency.\n"},"32b2e30a-0180-42ce-bb15-c352c8f10a84":{"name":"dexes","in":"query","schema":{"type":"string","description":"- Comma-separated list of DEXes to restrict routing to.\n- Labels are case sensitive (`SolFi`, not `solfi`). An unrecognised label is not a validation error: it returns `400 {\"error\": \"No routes found\"}`, indistinguishable from a pair with no liquidity.\n- Mutually exclusive with excludeDexes. Passing both returns `400 {\"error\": \"dexes and excludeDexes are mutually exclusive\"}`.\n- Full list of DEXes here using the `/program-id-to-label` endpoint.\n","uniqueKey":"","typeLabel":"string"},"description":"- Comma-separated list of DEXes to restrict routing to.\n- Labels are case sensitive (`SolFi`, not `solfi`). An unrecognised label is not a validation error: it returns `400 {\"error\": \"No routes found\"}`, indistinguishable from a pair with no liquidity.\n- Mutually exclusive with excludeDexes. Passing both returns `400 {\"error\": \"dexes and excludeDexes are mutually exclusive\"}`.\n- Full list of DEXes here using the `/program-id-to-label` endpoint.\n"},"3341ae41-689f-468a-bfcc-63da9158fded":{"name":"excludeDexes","in":"query","schema":{"type":"string","description":"- Comma-separated list of DEXes to exclude.\n- Labels are case sensitive (`SolFi`, not `solfi`).\n- Mutually exclusive with dexes.\n- Full list of DEXes here using the `/program-id-to-label` endpoint.\n","uniqueKey":"","typeLabel":"string"},"description":"- Comma-separated list of DEXes to exclude.\n- Labels are case sensitive (`SolFi`, not `solfi`).\n- Mutually exclusive with dexes.\n- Full list of DEXes here using the `/program-id-to-label` endpoint.\n"},"df588008-fa6f-4715-9dcf-33c5de87d44b":{"name":"platformFeeBps","in":"query","schema":{"type":"integer","minimum":0,"maximum":10000,"description":"Platform fee in basis points. If positive, feeAccount is required.\n","uniqueKey":"","typeLabel":"integer"},"description":"Platform fee in basis points. If positive, feeAccount is required.\n","example":50},"391cab5a-e61a-4f44-9c7a-f6f034089673":{"name":"feeAccount","in":"query","schema":{"type":"string","description":"Token account to collect platform fees. Required if platformFeeBps is positive.","uniqueKey":"","typeLabel":"string"},"description":"Token account to collect platform fees. Required if platformFeeBps is positive."},"45cafeb2-bbce-4419-982a-b89d5c48f65f":{"name":"maxAccounts","in":"query","schema":{"type":"integer","minimum":1,"maximum":64,"description":"Maximum number of accounts for the swap route. Defaults to 64.","uniqueKey":"","typeLabel":"integer"},"description":"Maximum number of accounts for the swap route. Defaults to 64."},"058dcede-9a1a-4def-a428-04adac49d259":{"name":"payer","in":"query","schema":{"type":"string","description":"Account that pays transaction fees and rent. Defaults to taker when not passed in.","uniqueKey":"","typeLabel":"string"},"description":"Account that pays transaction fees and rent. Defaults to taker when not passed in."},"28b5ce02-4b3c-4e76-8859-4b6934b3a40b":{"name":"wrapAndUnwrapSol","in":"query","schema":{"type":"boolean","description":"Whether to wrap/unwrap SOL. Defaults to true.","uniqueKey":"","typeLabel":"boolean"},"description":"Whether to wrap/unwrap SOL. Defaults to true."},"c9dc86c4-cc4b-4217-b954-ea0529f6e3d5":{"name":"destinationTokenAccount","in":"query","schema":{"type":"string","description":"- SPL token account to receive output tokens.\n- Mutually exclusive with nativeDestinationAccount.\n","uniqueKey":"","typeLabel":"string"},"description":"- SPL token account to receive output tokens.\n- Mutually exclusive with nativeDestinationAccount.\n"},"af847f2e-ae5f-4b54-93ad-d8e516da09d1":{"name":"nativeDestinationAccount","in":"query","schema":{"type":"string","description":"- Native SOL account to receive output.\n- Mutually exclusive with destinationTokenAccount.\n","uniqueKey":"","typeLabel":"string"},"description":"- Native SOL account to receive output.\n- Mutually exclusive with destinationTokenAccount.\n"},"77b5fd20-bf33-43f8-aae6-0d5528685009":{"name":"blockhashSlotsToExpiry","in":"query","schema":{"type":"integer","minimum":1,"maximum":300,"description":"Number of slots until the blockhash expires. Defaults to 150.","uniqueKey":"","typeLabel":"integer"},"description":"Number of slots until the blockhash expires. Defaults to 150."},"06d64212-f93e-473f-9cb3-c340bd70df6e":{"name":"tipAmount","in":"query","schema":{"type":"string","isRequired":false,"description":"SOL tip amount in lamports. Adds a tip instruction for use with /submit. The tip payer is the taker (or payer if specified).","uniqueKey":"","typeLabel":"string"},"description":"SOL tip amount in lamports. Adds a tip instruction for use with /submit. The tip payer is the taker (or payer if specified).","required":false},"20b956a6-3ef2-4e0f-9f54-dc4e53f6f276":{"name":"computeUnitPricePercentile","in":"query","schema":{"oneOf":[{"type":"string","enum":["medium","high","veryHigh"],"description":"Percentile of compute unit price to use. Named levels: \"medium\" (25th), \"high\" (50th), \"veryHigh\" (75th), or a number 0-10000 in basis points.","uniqueKey":"oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"integer","maximum":10000,"minimum":0,"description":"Percentile of compute unit price to use. Named levels: \"medium\" (25th), \"high\" (50th), \"veryHigh\" (75th), or a number 0-10000 in basis points.","uniqueKey":"oneOf.1","typeLabel":"integer"}],"uniqueKey":"","typeLabel":"enum\u003cstring> | integer"},"description":"Percentile of compute unit price to use. Named levels: \"medium\" (25th), \"high\" (50th), \"veryHigh\" (75th), or a number 0-10000 in basis points."},"bbd03b16-1eff-4ea8-87c5-e9af2ce8e036":{"name":"forJitoBundle","in":"query","schema":{"type":"boolean","default":false,"description":"Set to `true` if the transaction will be submitted as part of a Jito bundle.\nThis excludes DEXes that are incompatible with Jito bundles.\n","uniqueKey":"","typeLabel":"boolean"},"description":"Set to `true` if the transaction will be submitted as part of a Jito bundle.\nThis excludes DEXes that are incompatible with Jito bundles.\n"},"8aeb5205-d222-4c20-a6b4-2fa70de24747":{"name":"transactionVersion","in":"query","schema":{"type":"string","enum":["0","1"],"default":"0","description":"The Solana transaction version to build for, `\"0\"` or `\"1\"`. Defaults to `\"0\"`.\n`\"1\"` returns v1 instructions: `computeBudgetInstructions` is empty and `addressesByLookupTableAddress` is `{}` (v1 inlines accounts, no lookup tables). Set the compute budget, including the returned `computeUnitPrice`, on the message config. Build with a v1-capable SDK (`@solana/kit` v8 or later).\n","uniqueKey":"","typeLabel":"enum\u003cstring>"},"description":"The Solana transaction version to build for, `\"0\"` or `\"1\"`. Defaults to `\"0\"`.\n`\"1\"` returns v1 instructions: `computeBudgetInstructions` is empty and `addressesByLookupTableAddress` is `{}` (v1 inlines accounts, no lookup tables). Set the compute budget, including the returned `computeUnitPrice`, on the message config. Build with a v1-capable SDK (`@solana/kit` v8 or later).\n","example":"1"}},"responses":{"58bc5101-1247-4ed7-b83d-7af11e59409b":{"description":"Quote with raw swap instructions","content":{"application/json":{"schema":{"type":"object","properties":{"inputMint":{"type":"string","uniqueKey":"inputMint","typeLabel":"string"},"outputMint":{"type":"string","uniqueKey":"outputMint","typeLabel":"string"},"inAmount":{"type":"string","uniqueKey":"inAmount","typeLabel":"string"},"outAmount":{"type":"string","uniqueKey":"outAmount","typeLabel":"string"},"otherAmountThreshold":{"type":"string","description":"Minimum output amount after slippage","uniqueKey":"otherAmountThreshold","typeLabel":"string"},"swapMode":{"type":"string","uniqueKey":"swapMode","typeLabel":"string"},"slippageBps":{"type":"number","uniqueKey":"slippageBps","typeLabel":"number"},"priceImpactPct":{"type":"string","description":"Price impact of the swap as a decimal ratio (e.g. \"0.001\" = 0.1%)","uniqueKey":"priceImpactPct","typeLabel":"string"},"routePlan":{"type":"array","items":{"type":"object","properties":{"swapInfo":{"type":"object","properties":{"ammKey":{"type":"string","isRequired":true,"uniqueKey":"routePlan.items.[INDEX].swapInfo.ammKey","typeLabel":"string"},"label":{"type":"string","isRequired":true,"uniqueKey":"routePlan.items.[INDEX].swapInfo.label","typeLabel":"string"},"inputMint":{"type":"string","isRequired":true,"uniqueKey":"routePlan.items.[INDEX].swapInfo.inputMint","typeLabel":"string"},"outputMint":{"type":"string","isRequired":true,"uniqueKey":"routePlan.items.[INDEX].swapInfo.outputMint","typeLabel":"string"},"inAmount":{"type":"string","isRequired":true,"uniqueKey":"routePlan.items.[INDEX].swapInfo.inAmount","typeLabel":"string"},"outAmount":{"type":"string","isRequired":true,"uniqueKey":"routePlan.items.[INDEX].swapInfo.outAmount","typeLabel":"string"}},"required":["ammKey","label","inputMint","outputMint","inAmount","outAmount"],"isRequired":true,"uniqueKey":"routePlan.items.[INDEX].swapInfo","typeLabel":"object"},"percent":{"type":"number","description":"Percentage of total swap routed through this step","isRequired":true,"uniqueKey":"routePlan.items.[INDEX].percent","typeLabel":"number"},"bps":{"type":"number","description":"Basis points of total swap routed through this step","isRequired":true,"uniqueKey":"routePlan.items.[INDEX].bps","typeLabel":"number"},"usdValue":{"type":"number","description":"USD value of this step","uniqueKey":"routePlan.items.[INDEX].usdValue","typeLabel":"number"}},"required":["swapInfo","percent","bps"],"uniqueKey":"routePlan.items.[INDEX]","typeLabel":"object"},"uniqueKey":"routePlan","typeLabel":"object[]"},"computeBudgetInstructions":{"type":"array","items":{"type":"object","properties":{"programId":{"type":"string","description":"Program executing the instruction","isRequired":true,"uniqueKey":"computeBudgetInstructions.items.[INDEX].programId","typeLabel":"string"},"accounts":{"type":"array","items":{"type":"object","properties":{"pubkey":{"type":"string","isRequired":true,"uniqueKey":"computeBudgetInstructions.items.[INDEX].accounts.items.[INDEX].pubkey","typeLabel":"string"},"isWritable":{"type":"boolean","isRequired":true,"uniqueKey":"computeBudgetInstructions.items.[INDEX].accounts.items.[INDEX].isWritable","typeLabel":"boolean"},"isSigner":{"type":"boolean","isRequired":true,"uniqueKey":"computeBudgetInstructions.items.[INDEX].accounts.items.[INDEX].isSigner","typeLabel":"boolean"}},"required":["pubkey","isWritable","isSigner"],"uniqueKey":"computeBudgetInstructions.items.[INDEX].accounts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"computeBudgetInstructions.items.[INDEX].accounts","typeLabel":"object[]"},"data":{"type":"string","description":"Base64-encoded instruction data","isRequired":true,"uniqueKey":"computeBudgetInstructions.items.[INDEX].data","typeLabel":"string"}},"required":["programId","accounts","data"],"uniqueKey":"computeBudgetInstructions.items.[INDEX]","typeLabel":"object"},"description":"Compute unit price instruction (does not include compute unit limit). Empty when transactionVersion is \"1\"; use computeUnitPrice on the message config instead.","uniqueKey":"computeBudgetInstructions","typeLabel":"object[]"},"setupInstructions":{"type":"array","items":{"type":"object","properties":{"programId":{"type":"string","description":"Program executing the instruction","isRequired":true,"uniqueKey":"setupInstructions.items.[INDEX].programId","typeLabel":"string"},"accounts":{"type":"array","items":{"type":"object","properties":{"pubkey":{"type":"string","isRequired":true,"uniqueKey":"setupInstructions.items.[INDEX].accounts.items.[INDEX].pubkey","typeLabel":"string"},"isWritable":{"type":"boolean","isRequired":true,"uniqueKey":"setupInstructions.items.[INDEX].accounts.items.[INDEX].isWritable","typeLabel":"boolean"},"isSigner":{"type":"boolean","isRequired":true,"uniqueKey":"setupInstructions.items.[INDEX].accounts.items.[INDEX].isSigner","typeLabel":"boolean"}},"required":["pubkey","isWritable","isSigner"],"uniqueKey":"setupInstructions.items.[INDEX].accounts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"setupInstructions.items.[INDEX].accounts","typeLabel":"object[]"},"data":{"type":"string","description":"Base64-encoded instruction data","isRequired":true,"uniqueKey":"setupInstructions.items.[INDEX].data","typeLabel":"string"}},"required":["programId","accounts","data"],"uniqueKey":"setupInstructions.items.[INDEX]","typeLabel":"object"},"description":"Pre-swap setup instructions (e.g. create ATAs)","uniqueKey":"setupInstructions","typeLabel":"object[]"},"swapInstruction":{"type":"object","properties":{"programId":{"type":"string","description":"Program executing the instruction","isRequired":true,"uniqueKey":"swapInstruction.programId","typeLabel":"string"},"accounts":{"type":"array","items":{"type":"object","properties":{"pubkey":{"type":"string","isRequired":true,"uniqueKey":"swapInstruction.accounts.items.[INDEX].pubkey","typeLabel":"string"},"isWritable":{"type":"boolean","isRequired":true,"uniqueKey":"swapInstruction.accounts.items.[INDEX].isWritable","typeLabel":"boolean"},"isSigner":{"type":"boolean","isRequired":true,"uniqueKey":"swapInstruction.accounts.items.[INDEX].isSigner","typeLabel":"boolean"}},"required":["pubkey","isWritable","isSigner"],"uniqueKey":"swapInstruction.accounts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"swapInstruction.accounts","typeLabel":"object[]"},"data":{"type":"string","description":"Base64-encoded instruction data","isRequired":true,"uniqueKey":"swapInstruction.data","typeLabel":"string"}},"required":["programId","accounts","data"],"uniqueKey":"swapInstruction","typeLabel":"object"},"cleanupInstruction":{"oneOf":[{"type":"object","properties":{"programId":{"type":"string","description":"Program executing the instruction","isRequired":true,"uniqueKey":"cleanupInstruction.oneOf.0.programId","typeLabel":"string"},"accounts":{"type":"array","items":{"type":"object","properties":{"pubkey":{"type":"string","isRequired":true,"uniqueKey":"cleanupInstruction.oneOf.0.accounts.items.[INDEX].pubkey","typeLabel":"string"},"isWritable":{"type":"boolean","isRequired":true,"uniqueKey":"cleanupInstruction.oneOf.0.accounts.items.[INDEX].isWritable","typeLabel":"boolean"},"isSigner":{"type":"boolean","isRequired":true,"uniqueKey":"cleanupInstruction.oneOf.0.accounts.items.[INDEX].isSigner","typeLabel":"boolean"}},"required":["pubkey","isWritable","isSigner"],"uniqueKey":"cleanupInstruction.oneOf.0.accounts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"cleanupInstruction.oneOf.0.accounts","typeLabel":"object[]"},"data":{"type":"string","description":"Base64-encoded instruction data","isRequired":true,"uniqueKey":"cleanupInstruction.oneOf.0.data","typeLabel":"string"}},"required":["programId","accounts","data"],"description":"Post-swap cleanup instruction","uniqueKey":"cleanupInstruction.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"programId":{"type":"string","description":"Program executing the instruction"},"accounts":{"type":"array","items":{"type":"object","properties":{"pubkey":{"type":"string"},"isWritable":{"type":"boolean"},"isSigner":{"type":"boolean"}},"required":["pubkey","isWritable","isSigner"]}},"data":{"type":"string","description":"Base64-encoded instruction data"}},"required":["programId","accounts","data"],"description":"Post-swap cleanup instruction","uniqueKey":"cleanupInstruction.oneOf.1","typeLabel":"null"}],"uniqueKey":"cleanupInstruction","typeLabel":"object | null"},"otherInstructions":{"type":"array","items":{"type":"object","properties":{"programId":{"type":"string","description":"Program executing the instruction","isRequired":true,"uniqueKey":"otherInstructions.items.[INDEX].programId","typeLabel":"string"},"accounts":{"type":"array","items":{"type":"object","properties":{"pubkey":{"type":"string","isRequired":true,"uniqueKey":"otherInstructions.items.[INDEX].accounts.items.[INDEX].pubkey","typeLabel":"string"},"isWritable":{"type":"boolean","isRequired":true,"uniqueKey":"otherInstructions.items.[INDEX].accounts.items.[INDEX].isWritable","typeLabel":"boolean"},"isSigner":{"type":"boolean","isRequired":true,"uniqueKey":"otherInstructions.items.[INDEX].accounts.items.[INDEX].isSigner","typeLabel":"boolean"}},"required":["pubkey","isWritable","isSigner"],"uniqueKey":"otherInstructions.items.[INDEX].accounts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"otherInstructions.items.[INDEX].accounts","typeLabel":"object[]"},"data":{"type":"string","description":"Base64-encoded instruction data","isRequired":true,"uniqueKey":"otherInstructions.items.[INDEX].data","typeLabel":"string"}},"required":["programId","accounts","data"],"uniqueKey":"otherInstructions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"otherInstructions","typeLabel":"object[]"},"tipInstruction":{"oneOf":[{"type":"object","required":["programId","accounts","data"],"properties":{"programId":{"type":"string","description":"Program executing the instruction","isRequired":true,"uniqueKey":"tipInstruction.oneOf.0.programId","typeLabel":"string"},"accounts":{"type":"array","items":{"type":"object","properties":{"pubkey":{"type":"string","isRequired":true,"uniqueKey":"tipInstruction.oneOf.0.accounts.items.[INDEX].pubkey","typeLabel":"string"},"isWritable":{"type":"boolean","isRequired":true,"uniqueKey":"tipInstruction.oneOf.0.accounts.items.[INDEX].isWritable","typeLabel":"boolean"},"isSigner":{"type":"boolean","isRequired":true,"uniqueKey":"tipInstruction.oneOf.0.accounts.items.[INDEX].isSigner","typeLabel":"boolean"}},"required":["pubkey","isWritable","isSigner"],"uniqueKey":"tipInstruction.oneOf.0.accounts.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"tipInstruction.oneOf.0.accounts","typeLabel":"object[]"},"data":{"type":"string","description":"Base64-encoded instruction data","isRequired":true,"uniqueKey":"tipInstruction.oneOf.0.data","typeLabel":"string"}},"uniqueKey":"tipInstruction.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"tipInstruction.oneOf.1","typeLabel":"null"}],"uniqueKey":"tipInstruction","typeLabel":"object | null"},"addressesByLookupTableAddress":{"oneOf":[{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"addressesByLookupTableAddress.oneOf.0.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"addressesByLookupTableAddress.oneOf.0.additionalProperties","typeLabel":"string[]"},"description":"Address lookup table mappings for v0 transactions. Empty object ({}) when transactionVersion is \"1\" (v1 inlines accounts, no lookup tables).","uniqueKey":"addressesByLookupTableAddress.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"addressesByLookupTableAddress.oneOf.1.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"addressesByLookupTableAddress.oneOf.1.additionalProperties","typeLabel":"string[]"},"description":"Address lookup table mappings for v0 transactions. Empty object ({}) when transactionVersion is \"1\" (v1 inlines accounts, no lookup tables).","uniqueKey":"addressesByLookupTableAddress.oneOf.1","typeLabel":"null"}],"uniqueKey":"addressesByLookupTableAddress","typeLabel":"object | null"},"transactionVersion":{"type":"number","enum":[0,1],"description":"The Solana transaction version these instructions are for, 0 or 1, matching the transactionVersion request parameter.","uniqueKey":"transactionVersion","typeLabel":"enum\u003cnumber>"},"computeUnitPrice":{"type":"string","description":"Present when transactionVersion is \"1\". Compute unit price in micro-lamports, to set on the message config.","uniqueKey":"computeUnitPrice","typeLabel":"string"},"blockhashWithMetadata":{"type":"object","properties":{"blockhash":{"type":"array","items":{"type":"number","uniqueKey":"blockhashWithMetadata.blockhash.items.[INDEX]","typeLabel":"number"},"description":"Blockhash as byte array","uniqueKey":"blockhashWithMetadata.blockhash","typeLabel":"number[]"},"lastValidBlockHeight":{"type":"number","uniqueKey":"blockhashWithMetadata.lastValidBlockHeight","typeLabel":"number"},"fetchedAt":{"type":"object","description":"When the blockhash was fetched, as a Unix timestamp split into seconds and nanoseconds","properties":{"secs_since_epoch":{"type":"number","description":"Whole seconds since the Unix epoch","uniqueKey":"blockhashWithMetadata.fetchedAt.secs_since_epoch","typeLabel":"number"},"nanos_since_epoch":{"type":"number","description":"Nanoseconds component within the second","uniqueKey":"blockhashWithMetadata.fetchedAt.nanos_since_epoch","typeLabel":"number"}},"uniqueKey":"blockhashWithMetadata.fetchedAt","typeLabel":"object"}},"uniqueKey":"blockhashWithMetadata","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"inputMint":"\u003cstring>","outputMint":"\u003cstring>","inAmount":"\u003cstring>","outAmount":"\u003cstring>","otherAmountThreshold":"\u003cstring>","swapMode":"\u003cstring>","slippageBps":123,"priceImpactPct":"\u003cstring>","routePlan":[{"swapInfo":{"ammKey":"\u003cstring>","label":"\u003cstring>","inputMint":"\u003cstring>","outputMint":"\u003cstring>","inAmount":"\u003cstring>","outAmount":"\u003cstring>"},"percent":123,"bps":123,"usdValue":123}],"computeBudgetInstructions":[{"programId":"\u003cstring>","accounts":[{"pubkey":"\u003cstring>","isWritable":true,"isSigner":true}],"data":"\u003cstring>"}],"setupInstructions":[{"programId":"\u003cstring>","accounts":[{"pubkey":"\u003cstring>","isWritable":true,"isSigner":true}],"data":"\u003cstring>"}],"swapInstruction":{"programId":"\u003cstring>","accounts":[{"pubkey":"\u003cstring>","isWritable":true,"isSigner":true}],"data":"\u003cstring>"},"cleanupInstruction":{"programId":"\u003cstring>","accounts":[{"pubkey":"\u003cstring>","isWritable":true,"isSigner":true}],"data":"\u003cstring>"},"otherInstructions":[{"programId":"\u003cstring>","accounts":[{"pubkey":"\u003cstring>","isWritable":true,"isSigner":true}],"data":"\u003cstring>"}],"tipInstruction":{"programId":"\u003cstring>","accounts":[{"pubkey":"\u003cstring>","isWritable":true,"isSigner":true}],"data":"\u003cstring>"},"addressesByLookupTableAddress":{},"transactionVersion":0,"computeUnitPrice":"\u003cstring>","blockhashWithMetadata":{"blockhash":[123],"lastValidBlockHeight":123,"fetchedAt":{"secs_since_epoch":123,"nanos_since_epoch":123}}}}},"exampleType":"generated"}},"exampleType":"generated"},"fc96f4a7-a17b-4e38-9065-7aee472baba5":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"45a33a30-9a5e-486f-bb2d-916e2c932460":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"Get API key via https://developers.jup.ag/portal","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"ef3fea8f-edef-47a1-b05d-ed6568b0584c":{"url":"https://api.jup.ag/swap/v2","description":"Swap API V2 Endpoint"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"Get API key via https://developers.jup.ag/portal","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"Get API key via https://developers.jup.ag/portal","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi-spec/swap/v2/swap.yaml"},"subdomain":"jupiter","siteName":"Jupiter Developers","title":"Build Transaction - Jupiter Developers","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-27T07:45:12.702Z","originalFileLocation":"api-reference/swap/build.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Get a swap quote with raw instructions for building custom transactions\">\u003cmeta data-mint-head name=\"keywords\" content=\"Jupiter, Jupiter Developer Platform, Jupiter API, Jupiter SDK, Solana API, Solana swap API, Solana price API, Solana token API, prediction market API, Solana DeFi API, crypto API, Jupiter Swap, Jupiter Ultra, Jupiter Lend, Jupiter Perps, Jupiter Studio, Jupiter Plugin, Jupiter Wallet Kit, Jupiter Referral Program\">\u003cmeta data-mint-head name=\"application-name\" content=\"Jupiter Developers\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Build Transaction - Jupiter Developers\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get a swap quote with raw instructions for building custom transactions\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Jupiter Developers\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.jup.ag/docs/api-reference/swap/build\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://jupiter.mintlify.site/docs/logo/og.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Build Transaction - Jupiter Developers\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get a swap quote with raw instructions for building custom transactions\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://jupiter.mintlify.site/docs/logo/og.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Jupiter Developers\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00BEF0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.jup.ag/docs/api-reference/swap/build\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/swap/build.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.jup.ag/#organization\",\"name\":\"Jupiter Developers\",\"url\":\"https://developers.jup.ag\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/jupiter/mrenEfoqnubhOTHf/logo/logo.png?fit=max\u0026auto=format\u0026n=mrenEfoqnubhOTHf\u0026q=85\u0026s=e745e60a4186bc382d3d5d9bdff9273a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.jup.ag/docs#website\",\"name\":\"Jupiter Developers\",\"url\":\"https://developers.jup.ag/docs\",\"publisher\":{\"@id\":\"https://developers.jup.ag/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.jup.ag/docs/api-reference/swap/build#webpage\",\"url\":\"https://developers.jup.ag/docs/api-reference/swap/build\",\"name\":\"Build Transaction\",\"description\":\"Get a swap quote with raw instructions for building custom transactions\",\"dateModified\":\"2026-03-27T07:45:12.702Z\",\"isPartOf\":{\"@id\":\"https://developers.jup.ag/docs#website\"},\"breadcrumb\":{\"@id\":\"https://developers.jup.ag/docs/api-reference/swap/build#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.jup.ag/docs/api-reference/swap/build#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Metis (Onchain Router)\",\"item\":\"https://developers.jup.ag/docs/swap/build/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Build Transaction\",\"item\":\"https://developers.jup.ag/docs/api-reference/swap/build\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.jup.ag/docs/api-reference/swap/build#apireference\",\"headline\":\"Build Transaction\",\"name\":\"Build Transaction\",\"description\":\"Get a swap quote with raw instructions for building custom transactions\",\"url\":\"https://developers.jup.ag/docs/api-reference/swap/build\",\"mainEntityOfPage\":{\"@id\":\"https://developers.jup.ag/docs/api-reference/swap/build#webpage\"},\"image\":\"https://developers.jup.ag/logo/og.png\",\"dateModified\":\"2026-03-27T07:45:12.702Z\",\"publisher\":{\"@id\":\"https://developers.jup.ag/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.jup.ag/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Jupiter Developers\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Jupiter Developers","nav":{"global":null,"tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":"/get-started"}]},{"tab":"Docs","menu":[{"item":"Swap","icon":"arrow-right-arrow-left","groups":[{"group":"Swap","pages":[{"title":"Solana Swap API","sidebarTitle":"Overview","href":"/swap"}]},{"group":"Meta-Aggregator","pages":[{"title":"Order \u0026 Execute","href":"/swap/order-and-execute"},{"openapi":"openapi-spec/swap/v2/swap.yaml get /order","title":"Get Order (Swap API)","sidebarTitle":"Get Order","href":"/api-reference/swap/order"},{"openapi":"openapi-spec/swap/v2/swap.yaml post /execute","title":"Execute Transaction","href":"/api-reference/swap/execute"}]},{"group":"Metis (Onchain Router)","pages":[{"title":"Build","href":"/swap/build/index"},{"title":"Common Instructions","description":"Common instructions to compose with your swap transaction","href":"/swap/build/common-instructions"},{"openapi":"openapi-spec/swap/v2/swap.yaml get /build","title":"Build Transaction","href":"/api-reference/swap/build"},{"openapi":"openapi-spec/swap/v2/swap.yaml get /program-id-to-label","title":"Program ID to Label","description":"Returns a hash mapping program IDs to labels for error identification","href":"/api-reference/swap/program-id-to-label"}]},{"group":"Advanced","pages":[{"title":"Advanced Swap Techniques","sidebarTitle":"Overview","href":"/swap/advanced/index"},{"title":"Slippage Estimation","href":"/swap/advanced/slippage"},{"title":"Gasless Swaps","href":"/swap/advanced/gasless"},{"title":"Compute Units \u0026 Priority Fees","href":"/swap/advanced/compute-units"},{"title":"Reduce Transaction Size","href":"/swap/advanced/reduce-transaction-size"},{"title":"Transaction Versions (v0 and v1)","href":"/swap/advanced/transaction-versions"},{"title":"Reduce Latency","href":"/swap/advanced/reduce-latency"}]},{"group":"Routing Integration","pages":[{"group":"Integrate AMM into Metis","pages":[{"title":"Integrate AMM into Metis","href":"/swap/routing/amm/integration"},{"title":"Market Listing","href":"/swap/routing/amm/market-listing"}]},{"group":"Integrate MM into JupiterZ (RFQ)","pages":[{"group":"Webhook (V1)","pages":[{"title":"Webhook Integration (V1)","sidebarTitle":"Overview","href":"/swap/routing/rfq/v1/overview"},{"title":"Webhook API","href":"/swap/routing/rfq/v1/webhook-api"},{"title":"Quoting and fills","href":"/swap/routing/rfq/v1/quoting"},{"title":"Settlement and special cases","href":"/swap/routing/rfq/v1/settlement"}]},{"group":"Streaming (V2)","pages":[{"title":"Streaming Integration (V2)","sidebarTitle":"Overview","href":"/swap/routing/rfq/v2/streaming"}]}]}]},{"group":"Guides","pages":[{"title":"How to Embed a Swap Widget in Your App","sidebarTitle":"Embed Swap Widget","href":"/guides/how-to-embed-a-swap-widget"}]},{"group":"Migration","pages":[{"title":"Metis to Router","href":"/swap/migration/metis-to-build"},{"title":"Metis to Meta-Aggregator","href":"/swap/migration/metis-to-meta-aggregator"},{"title":"Ultra to Meta-Aggregator","href":"/swap/migration/ultra-to-order"}]}]},{"item":"Tokens","icon":"coin","pages":[{"title":"Tokens","href":"/tokens"}]},{"item":"Price","icon":"dollar-sign","pages":[{"title":"Price","href":"/price"}]},{"item":"Transaction Landing","icon":"paper-plane","pages":[{"title":"Transaction Landing","href":"/transaction/submit"}]},{"item":"JupUSD","icon":"money-bill","pages":[{"title":"JupUSD","href":"/jupusd"}]},{"item":"Lend","icon":"piggy-bank","pages":[{"title":"Lend","href":"/lend"}]},{"item":"LO \u0026 DCA","icon":"crosshairs","pages":[{"title":"LO \u0026 DCA","href":"/trigger"}]},{"item":"Prediction","icon":"check-to-slot","pages":[{"title":"Prediction","href":"/prediction"}]},{"item":"More","icon":"ellipsis","pages":[{"title":"More","href":"/send"}]}]},{"tab":"AI","pages":[{"title":"AI","href":"/ai"}]},{"tab":"Tool Kits","pages":[{"title":"Tool Kits","href":"/tool-kits"}]},{"tab":"Changelog","href":"https://developers.jup.ag/changelog"},{"tab":"Resources","pages":[{"title":"Resources","href":"/resources/support"}]}]},"basePath":"","title":"Build Transaction - Jupiter Developers","buildId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","deploymentId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-B5WzX-8C.js","dist-BPypQKlo.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-6wHzaN2_.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-CNqlzjVB.js","utils-BqFiXZ79.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CnR4QBe6.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BY2ZM1OO.js","snippetPresets-x-8ACO8V.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ch-SJE05.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CqqG_0NE.js","shallow-BXrZ2b0C.js","getApiPlaygroundDisplay-n7J_wkjq.js","CodeSnippet-CQsp4vyQ.js","CodeSnippets-BfuHqvZx.js","Page-CTxrMSpo.js","getPastedJson-BjrGIK1i.js","icon-7iLZnVOC.js","MethodPill-TBS1m84e.js","DuplicateIcon-BNMrV4Vs.js","createIcon-C5kCqeU2.js","DynamicMarkdown-Bq09mRwR.js","SectionHeading-G4Bflf5Q.js","axios-vUo_bRtp.js","Markdown-BTUds0aX.js","AssistantPageLink-o6bee4ro.js"]}