Skip to content

Price

Get all prices for a given chain:

import { ChainId } from 'sushi/generic'
import { getPrices } from 'sushi/evm'
 
const prices = await getPrices(ChainId.ETHEREUM)
console.log("Prices:", prices)

Get price for a given chain and token address:

import { ChainId } from 'sushi/generic'
import { getPrice } from 'sushi/evm'
 
const price = await getPrice(ChainId.ETHEREUM, '0x6b3595068778dd592e39a122f4f5a5cf09c90fe2')
console.log("Price:", price)