---
title: "Generate a quote"
method: GET
path: "/rfq/v2/quote/{chainId}"
tags: ["Quote"]
---

# Generate a quote

`GET /rfq/v2/quote/{chainId}`

This endpoint facilitates the creation of a potential quote for executing a swap between two assets. It allows users to obtain pricing information and other essential details necessary to initiate asset swaps within the system. Use this endpoint to explore the potential cost and feasibility of asset exchanges before finalizing transactions.

## Path parameters

- `chainId` integer, required

## Query parameters

- `pool_address` string
- `time_in_seconds` integer
- `output_amount` string
- `input_amount` string
- `input_asset_symbol` string, required
- `output_asset_symbol` string, required

## Response `200`

Quote generated successfully

- QuoteResponse
  - `id` string, uuid, required — Id of the quote, use this value when signing a quote
  - `must_accept_by` string, required — Human-readable UTC timestamp by which you must accept the quote and should be expected to be a short duration. If this time has passed already, request a new quote - the server will not sign a quote after must_accept_by has passed
  - `good_until` integer, required — number of seconds that quotes live
  - `chain_id` integer, required — Represents the ID of the chain
  - `input_asset_address` string, required — Contract address of the asset you want to provide for the swap
  - `input_amount` string, required — Amount of assets to be exchanged
  - `output_asset_address` string, required — Contract address of the asset you want to receive in the swap
  - `output_amount` string, required — Amount of assets you will receive in the exchange
  - `input_value_in_usd` number, float, required — Amount in dollars to be exchanged
  - `output_value_in_usd` number, float, required — Amount in dollars you will receive in the exchange
  - `created_at` integer, required — Unix Timestamp indicating the date and time when the quote was created
  - `rate` number, float, required — swap rate

## Other responses

- `400` — Bad Request - Invalid data in the request
- `401` — Unauthorized - Missing or invalid API key. Ensure you include a valid `x-api-key` header.
- `403` — Forbidden Error - Access denied
- `409` — Quote problems
- `422` — Invalid input data
- `500` — Internal Server Error
- `503` — External Service Error

---

[API](https://skmtc.net/sushi/apis/blade-api.md) · [All operations](https://skmtc.net/sushi/apis/blade-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sushi/blade-api/versions/24cab97a081a/schema)
