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

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

Path Parameters

contractAddress
string
required

Contract address of the coin

Query Parameters

amount
string
required

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

Response

Coin quote retrieved successfully

quote
string
required

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