Fetcher
The Fetcher object contains two static methods fetchTokenData and fetchPairData. The functions return a Token or Pair object based on the queried on-chain data.
Static Methods
fetchTokenData
fetchTokenData
fetchTokenData(chainId: ChainId, address: string, provider?: Provider): Promise<Currency | undefined>
fetchPairData
fetchPairData
async fetchPairData(chainId: ChainId, tokenA: Currency, tokenB: Currency, provider?: Provider): Promise<Pair>