Query Parameters
- typestringREQUIRED
The type of quote to get (BUY or SELL)
- mintstringREQUIRED
The pump.fun mint address of the token to quote
- amountstringREQUIRED
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.
- commitmentstring
The level of commitment required for the query. The options include: 'finalized', 'confirmed', and 'processed'. (default: 'confirmed')
Returns
- quoteobject
Quote details for the requested token swap
- mintstring
The pump.fun mint address of the token
- bondingCurvestring
The pump.fun bonding curve address for the token
- typestring
The type of quote (BUY or SELL)
- inAmountstring
The raw input amount in base units
- inAmountUinumber
The formatted input amount
- inTokenAddressstring
The input mint token address
- outAmountstring
The raw output amount in base units
- outAmountUinumber
The formatted output amount
- outTokenAddressstring
The output mint token address
- metaobject
Additional metadata about the quote
- isCompletedboolean
Whether the bonding curve is completed
- outDecimalsnumber
Decimal places for the output token
- inDecimalsnumber
Decimal places for the input token
- totalSupplystring
Total supply of the token
- currentMarketCapInSolnumber
Current market cap in SOL
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.8718}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.8718}19}20}