Get Quote

Get quote information

GET /quote

Method is used to get a quote for buying or selling a specified amount of a token

Headers

Parameters

Body

Response

{
    "bondingCurve": "25uW6hChv3HV5y1tWKWAdFSn52W7MXbjVzfydpE95MCW",
    "mode": "buy",
    "tokenIn": "GBUua9eDwR3iBSv9EkDHPLRxEqrhkw5xHLcz5vVkpump",
    "amountIn": 1,
    "amountInRaw": "1000000000",
    "tokenOut": "So11111111111111111111111111111111111111112",
    "amountOut": 4458617.224765,
    "amountOutRaw": "4458617224765"
}

Examples

curl --location 'https://rpc.api-pump.fun/quote?token=your_token&amount=your_amount&mode=your_mode' \
--header 'Content-Type: application/json' \
--header 'x-api-key: your_api_key'

Last updated