/pump-fun/quote REST API Endpoint
Please note that this method is only available for paid subscribers of Metis - Jupiter V6 Swap API. This endpoint is currently in BETA. If you have any feedback or run into any issues, please reach out to support.
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.
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
1curl --location --request GET 'https://docs-demo.solana-mainnet.quiknode.pro/pump-fun/quote?mint=2q7jMwWYFxUdxBqWbi8ohztyG1agjQMrasUXwqGCpump&type=BUY&amount=100000000'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free