Get Quote

Get a price quote by providing the specified tokens information through Pump.fun.

Request

Be aware that this endpoint is using a dedicated URL.

https://pump-ny.solana.dex.blxrbdn.com/

https://pump-uk.solana.dex.blxrbdn.com/

Method:

GET ./api/v2/pumpfun/quotes

Parameters:

Parameter
Type
Description

quoteType

string

Type of the quote. Potential value could be "BUY" or "SELL"

mintAddress

string

Token mint address.

bondingCurveAddress

string

Bonding Curve program address.

amount

double

The amount of SOL users expected to spend.

Request example:

curl -X 'GET' \
  -H "Authorization: $AUTH_HEADER" \
  -H 'Content-Type: application/json' \
  'https://pump-ny.solana.dex.blxrbdn.com/api/v2/pumpfun/quotes?quoteType=BUY&mintAddress=2DEsbYgW94AtZxgUfYXoL8DqJAorsLrEWZdSfriipump&bondingCurveAddress=Fh8fnZUVEpPStJ2hKFNNjMAyuyvoJLMouENawg4DYCBc&amount=1'

Response:

Fields:

Field
Type
Description

result

resultMessage

See resultMessage below for details

resultMessage

Parameter
Description

quoteType

string

Type of the quote.

inTokenAddress

string

InToken address .

inAmount

double

Amount of the InToken.

outTokenAddress

string

OutToken address.

outAmount

double

Amount of the OutToken.

Example:

{
    "id":1,
    "result":{
        "quoteType":"BUY",
        "inTokenAddress":"So11111111111111111111111111111111111111112",
        "inAmount":3505.323027,
        "outTokenAddress":"2DEsbYgW94AtZxgUfYXoL8DqJAorsLrEWZdSfriipump",
        "outAmount":125318083718.47725
    },
    "jsonrpc":"2.0"
}

Last updated