Get Quote

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

Request

Method:

POST ./api/v2/pumpfun/quotes

Parameters:

ParameterTypeDescription

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 token users expected to swap.

Request example:

curl -X 'POST' \
  -H "Authorization: $AUTH_HEADER" \
  -H 'Content-Type: application/json' \
  'https://pump-ny.solana.dex.blxrbdn.com/api/v2/pumpfun/quotes' \
  -d '{
    "quoteType": "BUY",
    "bondingCurveAddress": "7BcRpqUC7AF5Xsc3QEpCb8xmoi2X1LpwjUBNThbjWvyo",
    "mintAddress": "BAHY8ocERNc5j6LqkYav1Prr8GBGsHvBV5X3dWPhsgXw",
    "tokenAmount": 22002
}'

Response:

Fields:

FieldTypeDescription

transaction

TransactionMessage

See TransactionMessage below for details

TransactionMessage

ParameterDescription

content

string

Raw bytes of signed transaction (should be in base64)

Example:

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

Last updated