provider.getNetwork().chainId: 1 (Mainnet)tokenAddress: 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 (USDC)result:{ tokenInAddress: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", (WETH) tokenOutAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", (USDC) tokenInDecimals: 18, tokenOutDecimals: 6, rate: 1716.06, (1 ETH = 1716.06 USDC) => (1 x (10^18) WEI = 1716.06 x (10^6) USDC (in the smallest units))};
Generated using TypeDoc
Example