OpenAny
Get API keyAPI Key
APICrypto & DeFi

jupiter logo
Jupiter Swap V2 Build Instructions API

Get Jupiter Swap V2 Build Instructions data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Jupiter, pass parameters such as amount, inputMint, outputMint, and retrieve structured data including swap instruction program address, swap instruction account requirements, setup instruction collection, compute-budget instruction collection, and cleanup instruction component for wallet assembly, and route inspection.

Selected price
$0 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Jupiter Swap V2 Build Instructions API

Prepare your request, then continue with your agent.

Selected price

$0 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Jupiter Swap V2 Build Instructions API

Jupiter Swap V2 Build Instructions API

GET requires inputMint, outputMint, amount and taker query values. The response separates setup, swap, cleanup and compute-budget instruction components with lookup-table and blockhash context. In this selected input profile, slippageBps accepts only the string rtse, and computeUnitPricePercentile accepts medium, high or veryHigh. Read returned transactionVersion separately from requested options.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs query: inputMint, outputMint, amount, taker, slippageBps, mode, dexes, excludeDexes, platformFeeBps, feeAccount, maxAccounts, payer, wrapAndUnwrapSol, destinationTokenAccount, nativeDestinationAccount, blockhashSlotsToExpiry, tipAmount, computeUnitPricePercentile, forJitoBundle, transactionVersion, maxBytes
Selected implementation jupiter · Jupiter — Swap API V2 — Prepare unsigned build Transaction
Billing Per call; check the selected implementation pricing and charge conditions

What You Can Build

  • Wallet assembly: Combine the returned instruction components deliberately.
  • Route inspection: Keep routing, account requirements and validity metadata together.

Documented Response Fields

Field Meaning
swapInstruction.programId Swap instruction program address
swapInstruction.accounts Swap instruction account requirements
setupInstructions Setup instruction collection
computeBudgetInstructions Compute-budget instruction collection
cleanupInstruction Cleanup instruction component
addressesByLookupTableAddress Lookup-table address mapping
blockhashWithMetadata.lastValidBlockHeight Last valid block height
transactionVersion Returned transaction version

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the supported inputs and set any required query value shown in the template.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  "https://api.openany.si/v1/agent-apis/jupiter/swap/v2/build" \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data-urlencode amount=10000000 \
  --data-urlencode inputMint=So11111111111111111111111111111111111111112 \
  --data-urlencode outputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v \
  --data-urlencode taker=GkwFnmMDvn3HGMpJpWBg8tgJxr3NxNvg3AXxvXVPbRGJ

Request and Response Examples

The saved response is a published documentation example with abbreviated source content. Its values may be historical; the request is an independent calling template. Use current returned identifiers and optional fields for your chosen resource.

Published Jupiter Swap V2 Build Instructions API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
The mint address of the input token
The mint address of the output token
The amount to swap in the smallest unit of the input token
Public key of the user initiating the swap.
Optional parameters (17)
Slippage tolerance in basis points. Defaults to 50. Import profile accepts the string branch only; other union branches are not exposed.
Quoting mode. "fast" trades quote optimality for reduced latency.
- 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.
- Comma-separated list of DEXes to exclude. - Labels are case sensitive (`SolFi`, not `solfi`). - Mutually exclusive with dexes. - Full list of DEXes here using the `/program-id-to-label` endpoint.
Platform fee in basis points. If positive, feeAccount is required.
Token account to collect platform fees. Required if platformFeeBps is positive.
Maximum number of accounts for the swap route. Defaults to 64.
Account that pays transaction fees and rent. Defaults to taker when not passed in.
Whether to wrap/unwrap SOL. Defaults to true.
- SPL token account to receive output tokens. - Mutually exclusive with nativeDestinationAccount.
- Native SOL account to receive output. - Mutually exclusive with destinationTokenAccount.
Number of slots until the blockhash expires. Defaults to 150.
SOL tip amount in lamports. Adds a tip instruction for use with /submit. The tip payer is the taker (or payer if specified).
Percentile of compute unit price to use. Named levels: "medium" (25th), "high" (50th), "veryHigh" (75th), or a number 0-10000 in basis points. Import profile accepts the string branch only; other union branches are not exposed.
Set to `true` if the transaction will be submitted as part of a Jito bundle. This excludes DEXes that are incompatible with Jito bundles.
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).
Target maximum transaction size in bytes, leaving room for your own instructions. - Sizing is deterministic, not an estimate: Metis builds and serializes the route to measure it. The swap it returns always fits your budget. - Counts the bare swap only. Anything you add on top is not counted, so your final transaction can still exceed it: request parameters (`payer`, `feeAccount`, `tipAmount`, destination accounts, close authority, cashback), your own instructions, extra signers, and your own lookup tables. - Set the budget below 1232 to leave room, then serialize your final transaction and lower `maxBytes` further if it still exceeds 1232. As a rough guide, each added account costs 1 byte if in your lookup table else 32, and each extra signer about 96 bytes. - v0 only (400 with `transactionVersion=1`).

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
jupiterCurrent
Jupiter — Swap API V2 — Prepare unsigned build Transaction · GET · View API reference
$0 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · jupiterUSD / call
Unit price
$0

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 5. Price update time: not supplied.

calls

Total $0

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/jupiter/swap/v2/build
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
inputMintURL query parametersquerystringYes

The mint address of the input token

outputMintURL query parametersquerystringYes

The mint address of the output token

amountURL query parametersquerystringYes

The amount to swap in the smallest unit of the input token

takerURL query parametersquerystringYes

Public key of the user initiating the swap.

slippageBpsURL query parametersquerystringNo

Slippage tolerance in basis points. Defaults to 50. Import profile accepts the string branch only; other union branches are not exposed.

enum: "rtse"

modeURL query parametersquerystringNo

Quoting mode. "fast" trades quote optimality for reduced latency.

enum: "fast"

dexesURL query parametersquerystringNo

- 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.

excludeDexesURL query parametersquerystringNo

- Comma-separated list of DEXes to exclude. - Labels are case sensitive (`SolFi`, not `solfi`). - Mutually exclusive with dexes. - Full list of DEXes here using the `/program-id-to-label` endpoint.

platformFeeBpsURL query parametersqueryintegerNo

Platform fee in basis points. If positive, feeAccount is required.

minimum: 0 · maximum: 10000

feeAccountURL query parametersquerystringNo

Token account to collect platform fees. Required if platformFeeBps is positive.

maxAccountsURL query parametersqueryintegerNo

Maximum number of accounts for the swap route. Defaults to 64.

minimum: 1 · maximum: 64

payerURL query parametersquerystringNo

Account that pays transaction fees and rent. Defaults to taker when not passed in.

wrapAndUnwrapSolURL query parametersquerybooleanNo

Whether to wrap/unwrap SOL. Defaults to true.

destinationTokenAccountURL query parametersquerystringNo

- SPL token account to receive output tokens. - Mutually exclusive with nativeDestinationAccount.

nativeDestinationAccountURL query parametersquerystringNo

- Native SOL account to receive output. - Mutually exclusive with destinationTokenAccount.

blockhashSlotsToExpiryURL query parametersqueryintegerNo

Number of slots until the blockhash expires. Defaults to 150.

minimum: 1 · maximum: 300

tipAmountURL query parametersquerystringNo

SOL tip amount in lamports. Adds a tip instruction for use with /submit. The tip payer is the taker (or payer if specified).

computeUnitPricePercentileURL query parametersquerystringNo

Percentile of compute unit price to use. Named levels: "medium" (25th), "high" (50th), "veryHigh" (75th), or a number 0-10000 in basis points. Import profile accepts the string branch only; other union branches are not exposed.

enum: "medium", "high", "veryHigh"

forJitoBundleURL query parametersquerybooleanNo

Set to `true` if the transaction will be submitted as part of a Jito bundle. This excludes DEXes that are incompatible with Jito bundles.

transactionVersionURL query parametersquerystringNo

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).

enum: "0", "1"

maxBytesURL query parametersqueryintegerNo

Target maximum transaction size in bytes, leaving room for your own instructions. - Sizing is deterministic, not an estimate: Metis builds and serializes the route to measure it. The swap it returns always fits your budget. - Counts the bare swap only. Anything you add on top is not counted, so your final transaction can still exceed it: request parameters (`payer`, `feeAccount`, `tipAmount`, destination accounts, close authority, cashback), your own instructions, extra signers, and your own lookup tables. - Set the budget below 1232 to leave room, then serialize your final transaction and lower `maxBytes` further if it still exceeds 1232. As a rough guide, each added account costs 1 byte if in your lookup table else 32, and each extra signer about 96 bytes. - v0 only (400 with `transactionVersion=1`).

minimum: 1 · maximum: 1232

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • addressesByLookupTableAddressobject
    • 13t3zQRgBuWNVHaxzD2Uf3ELzFaFr8civojnjH4MiRsstring[]
    • 5a1fzA5giAgNUq4s8gRaEFuJew4Q2ePU9h159xeUS37xstring[]
    • Bu5FqnUDrKcpeC4ikT3og9qFx3VqYcqVVi9NEGQfBtpHstring[]
    • C4wHbJ2nx5ys544Li6R4QLCbiMY8FrBK3Xjsact93kTwstring[]
  • blockhashWithMetadataobject
    • blockhashinteger[]
    • fetchedAtobject
      • nanos_since_epochinteger
      • secs_since_epochinteger
    • lastValidBlockHeightinteger
  • cleanupInstructionobject
    • accountsobject[]
      • isSignerboolean
      • isWritableboolean
      • pubkeystring
    • datastring
    • programIdstring
  • computeBudgetInstructionsobject[]
    • accountsunknown[]
    • datastring
    • programIdstring
  • inAmountstring
  • inputMintstring
  • otherAmountThresholdstring
  • otherInstructionsunknown[]
  • outAmountstring
  • outputMintstring
  • priceImpactPctstring
  • routePlanobject[]
    • bpsinteger
    • percentnumber
    • swapInfoobject
      • ammKeystring
      • inAmountstring
      • inputMintstring
      • labelstring
      • outAmountstring
      • outputMintstring
  • setupInstructionsobject[]
    • accountsobject[]
      • isSignerboolean
      • isWritableboolean
      • pubkeystring
    • datastring
    • programIdstring
  • slippageBpsinteger
  • swapInstructionobject
    • accountsobject[]
      • isSignerboolean
      • isWritableboolean
      • pubkeystring
    • datastring
    • programIdstring
  • swapModestring
  • tipInstructionnull
  • transactionVersioninteger

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Documentation example (source abbreviated)

Published documentation example. Verify the actual response after an approved call.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 21

    Review these request fields before running. Keep the published provider and request method unchanged.

    inputMint
    The mint address of the input token
    outputMint
    The mint address of the output token
    amount
    The amount to swap in the smallest unit of the input token
    taker
    Public key of the user initiating the swap.
    slippageBps
    Slippage tolerance in basis points. Defaults to 50. Import profile accepts the string branch only; other union branches are not exposed.
    mode
    Quoting mode. "fast" trades quote optimality for reduced latency.
    dexes
    - 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.
    excludeDexes
    - Comma-separated list of DEXes to exclude. - Labels are case sensitive (`SolFi`, not `solfi`). - Mutually exclusive with dexes. - Full list of DEXes here using the `/program-id-to-label` endpoint.
    platformFeeBps
    Platform fee in basis points. If positive, feeAccount is required.
    feeAccount
    Token account to collect platform fees. Required if platformFeeBps is positive.
    maxAccounts
    Maximum number of accounts for the swap route. Defaults to 64.
    payer
    Account that pays transaction fees and rent. Defaults to taker when not passed in.
    wrapAndUnwrapSol
    Whether to wrap/unwrap SOL. Defaults to true.
    destinationTokenAccount
    - SPL token account to receive output tokens. - Mutually exclusive with nativeDestinationAccount.
    nativeDestinationAccount
    - Native SOL account to receive output. - Mutually exclusive with destinationTokenAccount.
    blockhashSlotsToExpiry
    Number of slots until the blockhash expires. Defaults to 150.
    tipAmount
    SOL tip amount in lamports. Adds a tip instruction for use with /submit. The tip payer is the taker (or payer if specified).
    computeUnitPricePercentile
    Percentile of compute unit price to use. Named levels: "medium" (25th), "high" (50th), "veryHigh" (75th), or a number 0-10000 in basis points. Import profile accepts the string branch only; other union branches are not exposed.
    forJitoBundle
    Set to `true` if the transaction will be submitted as part of a Jito bundle. This excludes DEXes that are incompatible with Jito bundles.
    transactionVersion
    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).
    maxBytes
    Target maximum transaction size in bytes, leaving room for your own instructions. - Sizing is deterministic, not an estimate: Metis builds and serializes the route to measure it. The swap it returns always fits your budget. - Counts the bare swap only. Anything you add on top is not counted, so your final transaction can still exceed it: request parameters (`payer`, `feeAccount`, `tipAmount`, destination accounts, close authority, cashback), your own instructions, extra signers, and your own lookup tables. - Set the budget below 1232 to leave room, then serialize your final transaction and lower `maxBytes` further if it still exceeds 1232. As a rough guide, each added account costs 1 byte if in your lookup table else 32, and each extra signer about 96 bytes. - v0 only (400 with `transactionVersion=1`).
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/jupiter/swap/v2/build?amount=10000000&inputMint=So11111111111111111111111111111111111111112&outputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&taker=GkwFnmMDvn3HGMpJpWBg8tgJxr3NxNvg3AXxvXVPbRGJ' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "addressesByLookupTableAddress": {
        "13t3zQRgBuWNVHaxzD2Uf3ELzFaFr8civojnjH4MiRs": [
          "q7BVd2EPK5bmqbfWp4CrcMnJcuTdxYogQGH6XbNUaNR",
          "JCRGumoE9Qi5BBgULTgdgTLjSgkCMSbF62ZZfGs84JeU",
          "7hTckgnGnLQR6sdH7YkqFTAA7VwTfYFaZ6EhEsU3saCX"
        ],
        "5a1fzA5giAgNUq4s8gRaEFuJew4Q2ePU9h159xeUS37x": [
          "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
          "7VtfL8fvgNfhz17qKRMjzQEXgbdpnHHHQRh54R9jP2RJ",
          "BqaZiuYoDGSQKMVbn6ALSQzuNNNChKEeUR7HDpwqQNvu"
        ],
        "Bu5FqnUDrKcpeC4ikT3og9qFx3VqYcqVVi9NEGQfBtpH": [
          "HqBJt4NJz7XjbtqJe2fj6pmNDjptLSivseWfwGvmBBkE",
          "FLUXubRmkEi2q6K3Y9kBPg9248ggaZVsoSFhtJHSrm1X",
          "FPgdFKJ85XWhXg8qQHfZiHr7Z8KS72V6rUMFyYkirGvS"
        ],
        "C4wHbJ2nx5ys544Li6R4QLCbiMY8FrBK3Xjsact93kTw": [
          "BqaZiuYoDGSQKMVbn6ALSQzuNNNChKEeUR7HDpwqQNvu",
          "7iX6vUDC73yzCUZwoGzMyxq1eDNq3pYUDXimtgMKWHGk",
          "9hGCZPjdNxL4pjUsnz31gfvvJkV2qQf5pPH3RghGVU3u"
        ]
      },
      "blockhashWithMetadata": {
        "blockhash": [
          238,
          244,
          46
        ],
        "fetchedAt": {
          "nanos_since_epoch": 437865217,
          "secs_since_epoch": 1793341000
        },
        "lastValidBlockHeight": 441203302
      },
      "cleanupInstruction": {
        "accounts": [
          {
            "isSigner": false,
            "isWritable": true,
            "pubkey": "GSFbPvFTbfcRNGs4EEZVF8tBjV6ChcTaBrTYGGsDAq8o"
          },
          {
            "isSigner": false,
            "isWritable": true,
            "pubkey": "GkwFnmMDvn3HGMpJpWBg8tgJxr3NxNvg3AXxvXVPbRGJ"
          },
          {
            "isSigner": true,
            "isWritable": false,
            "pubkey": "GkwFnmMDvn3HGMpJpWBg8tgJxr3NxNvg3AXxvXVPbRGJ"
          }
        ],
        "data": "CQ==",
        "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
      },
      "computeBudgetInstructions": [
        {
          "accounts": [],
          "data": "A4IGAAAAAAAA",
          "programId": "ComputeBudget111111111111111111111111111111"
        }
      ],
      "inAmount": "10000000",
      "inputMint": "So11111111111111111111111111111111111111112",
      "otherAmountThreshold": "974726",
      "otherInstructions": [],
      "outAmount": "979624",
      "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "priceImpactPct": "0",
      "routePlan": [
        {
          "bps": 2966,
          "percent": 29.66,
          "swapInfo": {
            "ammKey": "5hCDEXRCn5YsyP1ydgbnaXT3QN6AAkfshfRkXRQypzr6",
            "inAmount": "2965558",
            "inputMint": "So11111111111111111111111111111111111111112",
            "label": "Whirlpool",
            "outAmount": "290522",
            "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
          }
        },
        {
          "bps": 7034,
          "percent": 70.34,
          "swapInfo": {
            "ammKey": "DyzGYEhdgSn5EEUt4XXviavZ7v7SV2YGrYV8HX3Aw5XT",
            "inAmount": "7034442",
            "inputMint": "So11111111111111111111111111111111111111112",
            "label": "Byreal",
            "outAmount": "690257",
            "outputMint": "USD1ttGY1N17NEEHLmELoaybftRBUSErhqYiQzvEmuB"
          }
        },
        {
          "bps": 10000,
          "percent": 100,
          "swapInfo": {
            "ammKey": "3a2ceHEsNjQCSXGfDzju8Xe8Aj86D8DGAHK4tuNRYRHT",
            "inAmount": "690257",
            "inputMint": "USD1ttGY1N17NEEHLmELoaybftRBUSErhqYiQzvEmuB",
            "label": "Manifest",
            "outAmount": "690083",
            "outputMint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
          }
        }
      ],
      "setupInstructions": [
        {
          "accounts": [
            {
              "isSigner": true,
              "isWritable": true,
              "pubkey": "GkwFnmMDvn3HGMpJpWBg8tgJxr3NxNvg3AXxvXVPbRGJ"
            },
            {
              "isSigner": false,
              "isWritable": true,
              "pubkey": "GSFbPvFTbfcRNGs4EEZVF8tBjV6ChcTaBrTYGGsDAq8o"
            },
            {
              "isSigner": false,
              "isWritable": false,
              "pubkey": "GkwFnmMDvn3HGMpJpWBg8tgJxr3NxNvg3AXxvXVPbRGJ"
            }
          ],
          "data": "AQ==",
          "programId": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
        },
        {
          "accounts": [
            {
              "isSigner": true,
              "isWritable": true,
              "pubkey": "GkwFnmMDvn3HGMpJpWBg8tgJxr3NxNvg3AXxvXVPbRGJ"
            },
            {
              "isSigner": false,
              "isWritable": true,
              "pubkey": "GSFbPvFTbfcRNGs4EEZVF8tBjV6ChcTaBrTYGGsDAq8o"
            }
          ],
          "data": "AgAAAICWmAAAAAAA",
          "programId": "11111111111111111111111111111111"
        },
        {
          "accounts": [
            {
              "isSigner": false,
              "isWritable": true,
              "pubkey": "GSFbPvFTbfcRNGs4EEZVF8tBjV6ChcTaBrTYGGsDAq8o"
            }
          ],
          "data": "EQ==",
          "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
        }
      ],
      "slippageBps": 50,
      "swapInstruction": {
        "accounts": [
          {
            "isSigner": true,
            "isWritable": false,
            "pubkey": "GkwFnmMDvn3HGMpJpWBg8tgJxr3NxNvg3AXxvXVPbRGJ"
          },
          {
            "isSigner": false,
            "isWritable": true,
            "pubkey": "GSFbPvFTbfcRNGs4EEZVF8tBjV6ChcTaBrTYGGsDAq8o"
          },
          {
            "isSigner": false,
            "isWritable": true,
            "pubkey": "GWWjoZ2bZikAhhMAH5V3Mp6goHqnWAT6KqCZSHmqtoZ"
          }
        ],
        "data": "u2T6zDHErxSAlpgAAAAAAKjyDgAAAAAAMgAAAAAABAAAAC8BAJYLAAScehsAAnQBECcCA5wQJwME",
        "programId": "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4"
      },
      "swapMode": "ExactIn",
      "tipInstruction": null,
      "transactionVersion": 0
    }

Common questions

Does this return a signed transaction?

No. It returns instruction components and assembly context. The wallet assembles, reviews and signs separately.

Can I send numeric slippageBps or a numeric percentile?

This selected input profile accepts only slippageBps=rtse and the named percentile strings medium, high or veryHigh. Numeric union branches are not exposed.

Which routing and destination options are mutually exclusive?

Use either dexes or excludeDexes, and either destinationTokenAccount or nativeDestinationAccount. Preserve the intended destination account type.

Does maxBytes cover everything my wallet later adds?

No. The documented budget covers the bare swap and is available for version 0. Additional instructions, accounts or signers require a final serialized-size check.

Which API key should I use?

Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

Where can I check the current request price?

Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

Use Jupiter Swap V2 Build Instructions API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.