For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

getMinRateByPair

This function is used to get the minimum exchange rate for a given token pair.

public async getMinRateByPair(
    sourceToken: string,
    targetToken: string
  )
Name
Type
Description

sourceToken

token address

The token being sold.

targetToken

token address

The token being bought.

Returns

This function returns a string with the minimum exchange rate for the given token pair.

Last updated