# quotes

### Request

{% hint style="warning" %}
Be aware that this endpoint is using a beta URL.&#x20;

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

<https://pump-uk.solana.dex.blxrbdn.com/>
{% endhint %}

#### Method:&#x20;

`GET ./api/v2/pumpfun/quotes`

#### Parameters:

<table><thead><tr><th width="196.71896910191123">Parameter</th><th width="92">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>quoteType</code></td><td>string</td><td>Type of the quote. Potential value could be <code>"BUY"</code> or <code>"SELL"</code></td></tr><tr><td><code>mintAddress</code></td><td>string</td><td>Token mint address. </td></tr><tr><td><code>bondingCurveAddress</code></td><td>string</td><td>Bonding Curve program address.</td></tr><tr><td><code>amount</code></td><td>double</td><td>The amount of token users expected to swap. </td></tr></tbody></table>

#### Request example:

{% tabs %}
{% tab title="HTTP" %}

```bash
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'
```

{% endtab %}
{% endtabs %}

### Response:

#### Fields:

<table><thead><tr><th width="177.5236885968357">Field</th><th width="245">Type</th><th width="419.58916051319363">Description</th></tr></thead><tbody><tr><td><code>transaction</code></td><td><code>TransactionMessage</code></td><td>See <code>TransactionMessage</code> below for details</td></tr></tbody></table>

`TransactionMessage`

<table><thead><tr><th width="236">Parameter</th><th width="261.2"></th><th width="369">Description</th></tr></thead><tbody><tr><td><code>content</code></td><td>string</td><td>Raw bytes of signed transaction (should be in base64)</td></tr></tbody></table>

#### Example:

{% tabs %}
{% tab title="JSON" %}

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

{% endtab %}
{% endtabs %}
