bloXroute Documentation
WebsiteBlogTwitterDiscord
  • Welcome to bloXroute
  • Introduction
    • Why Use bloXroute?
    • Products
    • Create An Account
    • Technical Support
  • SOLANA
    • Trader API
      • Introduction
        • Regions
        • Authorization
        • Rate Limits
        • Tip and Tipping Addresses
      • Quick Start
        • Transaction Submission
        • Front-Running Protection & Transaction Bundle
        • Go SDK
        • Python SDK
        • Typescript SDK
        • Rust SDK
      • API Endpoints
        • Core Endpoints
          • submit
          • submit-paladin
          • submit-batch
          • balance
          • rate-limit
          • transaction
          • priority-fee
          • GetPriorityFeeStream
          • GetBundleTipStream
          • submit-snipe
        • Pump.fun
          • quotes
          • swap
          • swap-sol
          • GetPumpFunNewTokensStream
          • GetPumpFunSwapsStream
          • GetPumpFunAMMSwapsStream
        • Raydium
          • quotes
          • pools
          • pool-reserves
          • swap
          • cpmm-swap
          • clmm-swap
          • route-swap
          • GetPoolReservesStream
          • GetSwapsStream
          • GetNewRaydiumPoolsStream
          • GetNewRaydiumPoolsByTransactionStream
        • Jupiter
          • quotes
          • swap
          • swap-instructions
          • route-swap
        • Openbook
          • markets
          • orderbooks/{market}
          • depth/{market}
          • tickers/{market}
          • open-orders/{market}
          • unsettled/{market}
          • place
          • replace
          • cancel
          • settle
          • GetOrderbooksStream
          • GetTickersStream
      • Best Performance for Landing Transactions
      • Support
        • API Health
        • Contact us
        • Suggestions
        • Wiki
          • Terms & Concepts
          • Resources
    • Optimized Feed Relay (OFR)
      • Transaction Streamer
      • Gateway and OFR Requirements
      • Gateway and OFR Setup
      • Gateway Startup Arguments
      • OFR performance
      • Logging
      • Submitting Transaction
      • Upgrading Gateway
      • Troubleshooting
  • BSC & ETH
    • EVM Blockchain Distribution Network (BDN)
      • How to Connect
      • The bloXroute Gateway
        • Local Gateway
          • Installation and Startup
            • Authentication & Certificates
            • Requirements
            • Supported Clients
            • GitHub repository option
            • Docker container option
            • Startup Script
            • Startup Arguments
          • General Connectivity Troubleshooting
          • Logging
          • Upgrading your Gateway
        • Add Your Gateway as a Trusted Peer to Your Execution Layer Client
        • Connecting Your Gateway with the Consensus Layer
      • IPs & Relays
        • Relays IPs
        • Private Relays
        • Cloud-API IPs
          • ⏩Reducing Latencies using the BDN
    • APIs
      • Authorization
      • Check Transaction Quota
      • Submit a Transaction
        • Raw Transaction Construction
        • Tx-Validation
        • Batch Transaction
      • Private Transactions
        • ETH Private Transactions
        • BSC Private Transactions
      • Transaction Bundles
        • Bundle Simulation
        • Bundle Validation
        • Bundle Submission
          • BSC Bundle Submission
            • List of BSC Validators
          • ETH Bundle Submission
          • Bundle Submission with Gateway
        • Bundle Tracking
          • BSC Bundle-Trace
          • ETH Bundle-Trace
          • ETH Bundle Inclusion Status
        • Bundle Refunds
          • Priority Fee Refund
          • Bundle Refund
          • Latest Bundle Refunds
      • Backrun Arbitrage
        • BackRunMe: Bundle Submission
          • BSC submit arbOnly
          • ETH submit arbOnly
            • blxr_info
            • ETH arbOnly Simulation
      • Token Launch Sniping
      • Other Utilities
        • List of bloXroute Builders
        • List of External Builders
        • Tx-Trace
        • Ping
    • Streams
      • Requirements
      • Subscription limits
      • Working With Streams
        • Creating a Subscription
          • Websocket
          • gRPC
        • Handling the Notification
          • Websocket
          • gRPC
        • Cancelling a Subscription
          • Websocket
          • gRPC
        • Local Node Validation
      • newTxs and pendingTxs
        • Filters
        • Raw TX Reconstruction
      • BackRunMe: arbOnlyMEV
        • ETH arbOnlyMEV
        • BSC arbOnlyMEV
      • transactionStatus
      • txReceipts
      • newBlocks
      • bdnBlocks
      • ethOnBlock
      • MEVBlockValue
      • MEVNextProposerInfo
    • Block Builders and Validators
      • Validator Gateway
      • MEV Relay (For Validators)
      • Block Submission
      • Proposer MEV-Protect
      • Compliance Lists
      • Preconfirmations
    • Protect RPCs
      • ETH Protect RPC
      • ETH Gas Protect RPC
      • BSC Protect RPC
      • SOL Protect RPC
  • Base Network
    • Submit Transactions
    • Streams
      • GetBdnBlockStream
  • TON NETWORK
    • TON Trader API
      • Quick Start
      • Fee Schedule
      • Connection
      • Submit Signed Transaction
  • Resources
    • BDN Explorer
    • Block Explorer
    • Guides
      • Algorithmic Trading
      • Setting Up a Local Gateway
      • Gateway as Web3 Bridge
    • Architecture
      • BDN Architecture
        • Network Components
        • Performance Techniques
          • Block Compression
          • Cut-through Routing
          • Optimized Topology
      • bloXroute Protocol
        • Versioning
        • Message Structure
        • Message Types
    • Contact Us
Powered by GitBook
On this page
  • Request
  • Response:
  1. SOLANA
  2. Trader API
  3. API Endpoints
  4. Jupiter

quotes

Get quotes from Jupiter by specifying required parameters.

This version contains experimental support for Jupiter in the Quotes endpoint and Prices stream endpoint. Note that the endpoints in Trader API are powered by Geyser, which is faster but will also result in subtly different state representations than what you'd normally get over Solana RPC. We welcome any feedback you have on these results.

Request

Method:

GET ./api/v2/jupiter/quotes

Parameters:

Parameter
Type
Description

inToken

string

Symbol of the swap-in token.

outToken

string

Symbol of the swap-out token.

inAmount

double

The amount of token wanted to be swapped from.

slippage

double

The maximum slippage tolerance in percentage.

fastMode

boolean

OPTIONAL. Lower latency option that excludes Raydium Pools.

Jupiter support for this endpoint is still experimental as we incorporate Geyser streams into Jupiter's aggregation algorithms. We welcome any feedback here.

Request example:

curl --header "Authorization: $AUTH_HEADER" \
"https://ny.solana.dex.blxrbdn.com/api/v2/jupiter/quotes?inToken=SOL&outToken=USDC&inAmount=0.1&slippage=0.1",
wscat --header "Authorization: $AUTH_HEADER" 
-c wss://ny.solana.dex.blxrbdn.com/ws --execute '{"jsonrpc": "2.0", "id": 1, "method": "GetJupiterQuotes", "params": {"inToken": "SOL", "outToken": "USDC", "inAmount":0.1, "slippage": 0.1}}'/
//missing
await provider.getQuotes({
    inToken: "SOL",
    outToken: "USDC",
    inAmount: 1,
    slippage: 5,
    limit: 5,
    projects: ["P_RAYDIUM", "P_JUPITER"],
})

Response:

Fields:

Field
Type
Description

inToken

string

Symbol of the swap-in token.

inTokenAddress

string

The program address for the swap-in token.

outToken

string

Symbol of the swap-out token.

outTokenAddress

string

The program address for the swap-out token.

inAmount

double

The amount of token wanted to be swapped from.

quotes

[] ProjectQuote

See ProjectQuote below for details.

ProjectQuote

Field
Type
Description

project

string

Symbol of the swap-in token.

routes

[]QuoteRoute

See QuoteRoute below for details.

QuoteRoute

Field
Type
Description

inAmount

double

Number of the swap-in token.

outAmount

double

Number of the swap-out token.

steps

[]QuoteStep

See QuoteStep below for details.

QuoteStep

Field
Type
Description

inToken

string

Symbol of the swap-in token for the current step.

inTokenAddress

string

The program address for the swap-in token for the current step.

outToken

string

Symbol of the swap-out token for the current step.

outTokenAddress

string

The program address for the swap-out token for the current step.

inAmount

double

Number of the swap-in token for the current step.

outAmount

double

Number of the swap-out token for the current step.

slippage

double

The maximum slippage tolerance in percentage.

priceImpact

PriceImpactPercent

"percent" Percentage impact on price. "infinity" Indicates possible infinity values: INF_NOT, INF_POSITIVE, INF_NEGATIVE. Usually INF_NOT.

fee

Fee

"amount" Amount paid to AMM project. "mint" Token currency the fee is paid in. "percent" Percentage of the swap consumed by the fee.

PriceImpactPercent

Field
Type
Description

percent

number

Percentage impact on price.

infinity

string

Indicates possible infinity values: INF_NOT, INF_POSITIVE, INF_NEGATIVE. Usually INF_NOT.

Fee

Field
Type
Description

amount

number

Amount paid to AMM project

mint

string

Token currency the fee is paid in

percent

number

Percentage of the swap consumed by the fee

Response Example:

{
    "inToken": "SOL",
    "inTokenAddress": "So11111111111111111111111111111111111111112",
    "outToken": "USDC",
    "outTokenAddress": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "inAmount": 0.1,
    "quotes": [
        {
            "routes": [
                {
                    "inAmount": 0.1,
                    "outAmount": 5.843859,
                    "steps": [
                        {
                            "project": {
                                "label": "Raydium",
                                "id": ""
                            },
                            "inToken": "SOL",
                            "inTokenAddress": "So11111111111111111111111111111111111111112",
                            "outToken": "",
                            "outTokenAddress": "4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R",
                            "inAmount": 0.1,
                            "outAmount": 3.328617,
                            "slippage": 0.1,
                            "priceImpactPercent": {
                                "percent": 9.899955638899446e-7,
                                "infinity": "INF_NOT"
                            },
                            "fee": {
                                "amount": 0.00025,
                                "mint": "",
                                "percent": 0
                            }
                        }
                    ]
                }
            ]
        }
    ]
}

PreviousJupiterNextswap