Get the default token for a given chain and symbol
import { getDefaultToken } from "thirdweb/react";import { ethereum } from "thirdweb/chains"; const token = getDefaultToken(ethereum, "USDC");
function getDefaultToken( chain: Readonly<ChainOptions & { rpc: string }>, symbol: | "WETH" | "USDT" | "USDC" | "WBTC" | "WMATIC" | "WBNB" | "BUSD" | "WFTM" | "WAVAX",): undefined | TokenInfo;
The chain to get the token for
let chain: Readonly<ChainOptions & { rpc: string }>;
The symbol of the token to get
let symbol: | "WETH" | "USDT" | "USDC" | "WBTC" | "WMATIC" | "WBNB" | "BUSD" | "WFTM" | "WAVAX";
let returnType: undefined | TokenInfo;
The default token for the given chain and symbol