---
title: "Get swap quote"
method: GET
path: "/evm/rh/quote"
tags: ["Robinhood Chain"]
---

# Get swap quote

`GET /evm/rh/quote`

Get a display-only swap quote for a Bags V2 token on Robinhood Chain. Pre-migration quotes come from the bonding curve; post-migration quotes come from the Uniswap V4 Quoter. **Exact-in only** — exact-out is not supported.

Quotes are display-only and uncached: every request quotes against the current block, and clients must re-quote client-side at sign time. Returns `404` for non-V2 tokens.

## Query parameters

- `tokenAddress` string, required
- `side` 'buy' | 'sell', required
- `amountWei` string, required

## Response `200`

Successfully retrieved swap quote

- object
  - `success` boolean, required
  - `response` object
    - `side` 'buy' | 'sell', required — Quote direction. Buy: ETH in, tokens out. Sell: tokens in, ETH out.
    - `venue` 'curve' | 'pool', required — Where the quote was computed: the bonding curve (pre-migration) or the Uniswap V4 Quoter (post-migration).
    - `amountInWei` string, required — Input amount in wei / token base units, as string to support bigint.
    - `amountOutWei` string, required — Expected output amount in wei / token base units, as string to support bigint.
    - `feeWei` string, nullable, required — Total fee taken by the venue for this quote (wei), as string to support bigint. Null when the venue does not report it (pool venue).
    - `asOfBlock` number, required — Block number the quote was computed against.

## Other responses

- `400` — Bad request - Invalid token address, side, or amount
- `401` — Unauthorized - Invalid or missing API key
- `404` — Not found - The address is not a Bags V2 token
- `500` — Internal server error

---

[API](https://skmtc.net/bags/apis/bags-public-api-v2.md) · [All operations](https://skmtc.net/bags/apis/bags-public-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bags/bags-public-api-v2/revisions/4a14b82cd39d/schema)
