Fetching Data
Case 1: Tokens
Identifying Data
Required Data
Provided by the User
import { ChainId, Token } from '@whiteswap/sdk'
const chainId = ChainId.MAINNET
const tokenAddress = '0x6B175474E89094C44Da98b954EedeAC495271d0F' // must be checksummed
const decimals = 18
const DAI = new Token(chainId, tokenAddress, decimals)Fetched by the SDK
Optional Data
Case 2: Pairs
Identifying Data
Required Data
Provided by the User
Fetched by the SDK
Last updated