Skip to main content

/pump-fun/quote REST API Endpoint - Swap API

Sends a GET request to get the best priced quote on Pump.fun.

Updated on
Aug 09, 2026
Please note that this method is only available for paid subscribers of Swap API.
Solana Kit includes the ability to customize RPC methods and transports, allowing you to seamlessly integrate Quicknode add-ons into your applications. For more information on how to use Quicknode add-ons with Solana Kit, check out these guides: How to Use Quicknode Add-ons using Solana Kit (Part 1) and How to Use Quicknode Add-ons using Solana Kit (Part 2)

Query Parameters

type
string
REQUIRED

The type of quote to get (BUY or SELL)

mint
string
REQUIRED

The pump.fun mint address of the token to quote

amount
string
REQUIRED

The amount of tokens to quote for the input token. For type = BUY, the amount should be for SOL. For type = SELL, the amount should be for the pump.fun token being sold, which is provided in the mint field. Note: All Pump.fun mints have 6 decimals. Specified amount should include those decimals here, e.g. Selling 100 tokens should be passed as 100000000.

commitment
string

The level of commitment required for the query. The options include: 'finalized', 'confirmed', and 'processed'. (default: 'confirmed')

Returns

quote
object

Quote details for the requested token swap

mint
string

The pump.fun mint address of the token

bondingCurve
string

The pump.fun bonding curve address for the token

type
string

The type of quote (BUY or SELL)

inAmount
string

The raw input amount in base units

inAmountUi
number

The formatted input amount

inTokenAddress
string

The input mint token address

outAmount
string

The raw output amount in base units

outAmountUi
number

The formatted output amount

outTokenAddress
string

The output mint token address

meta
object

Additional metadata about the quote

isCompleted
boolean

Whether the bonding curve is completed

outDecimals
number

Decimal places for the output token

inDecimals
number

Decimal places for the input token

totalSupply
string

Total supply of the token

currentMarketCapInSol
number

Current market cap in SOL

Request
Response
1
{
2
"quote": {
3
"mint": "2q7jMwWYFxUdxBqWbi8ohztyG1agjQMrasUXwqGCpump",
4
"bondingCurve": "D5hjyQvdhkCHCLG9N9urDc4vQyY5bKoaQjAP9KH1EB6N",
5
"type": "BUY",
6
"inAmount": "100000000",
7
"inAmountUi": 0.1,
8
"inTokenAddress": "So11111111111111111111111111111111111111112",
9
"outAmount": "25783649",
10
"outAmountUi": 25.783649,
11
"outTokenAddress": "2q7jMwWYFxUdxBqWbi8ohztyG1agjQMrasUXwqGCpump",
12
"meta": {
13
"isCompleted": false,
14
"outDecimals": 6,
15
"inDecimals": 9,
16
"totalSupply": "2375920463",
17
"currentMarketCapInSol": 1.87
18
}
19
}
20
}
1
{
2
"quote": {
3
"mint": "2q7jMwWYFxUdxBqWbi8ohztyG1agjQMrasUXwqGCpump",
4
"bondingCurve": "D5hjyQvdhkCHCLG9N9urDc4vQyY5bKoaQjAP9KH1EB6N",
5
"type": "BUY",
6
"inAmount": "100000000",
7
"inAmountUi": 0.1,
8
"inTokenAddress": "So11111111111111111111111111111111111111112",
9
"outAmount": "25783649",
10
"outAmountUi": 25.783649,
11
"outTokenAddress": "2q7jMwWYFxUdxBqWbi8ohztyG1agjQMrasUXwqGCpump",
12
"meta": {
13
"isCompleted": false,
14
"outDecimals": 6,
15
"inDecimals": 9,
16
"totalSupply": "2375920463",
17
"currentMarketCapInSol": 1.87
18
}
19
}
20
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free