Function getQuoteToken

  • Retrieves the quote token address for a given chain and a pair of tokens.

    Parameters

    • __namedParameters: {
          chainId: CHAIN_IDS;
          token0: `0x${string}`;
          token1: `0x${string}`;
      }
      • chainId: CHAIN_IDS
      • token0: `0x${string}`
      • token1: `0x${string}`

    Returns `0x${string}`

    The address of the quote token.

    Example

    import { getQuoteToken } from '@clober/v2-sdk'

    const quote = await getQuoteToken({
    chainId: 421614,
    token0: '0x00bfd44e79fb7f6dd5887a9426c8ef85a0cd23e0',
    token1: '0x0000000000000000000000000000000000000000',
    })