Skip to main content
GET
/
v1
/
coins
/
quote
/
{id}
Get coin quote by ID
import { ParagraphAPI } from "@paragraph-com/sdk"

const api = new ParagraphAPI()
const quote = await api.coins.getQuote({ id: "S2AlaNG5Hw0NdNptmLTw", amount: "1000000000000000000" })
{
  "quote": "<string>"
}

Path Parameters

id
string
required

Paragraph-internal unique identifier for the coin

Query Parameters

amount
string
required

Amount of Base ETH in wei that is going to be swapped for the coin

Pattern: [0-9]+

Response

Coin quote retrieved successfully

quote
string
required

Approximate number of coins that could be received in exchange of the amount of ETH entered