Deploys an thirdweb ERC20 contract of the given type. On chains where the thirdweb infrastructure contracts are not deployed, this function will deploy them as well.
import { deployERC20Contract } from "thirdweb/deploys";const contractAddress = await deployERC20Contract({ chain, client, account, type: "TokenERC20", params: { name: "MyToken", description: "My Token contract", symbol: "MT",});
function deployERC20Contract(options: { account: Account; chain: Readonly<ChainOptions & { rpc: string }>; client: ThirdwebClient; params: ERC20ContractParams; publisher?: string; type: ERC20ContractType;}): Promise<string>;
The deployment options.
let options: { account: Account; chain: Readonly<ChainOptions & { rpc: string }>; client: ThirdwebClient; params: ERC20ContractParams; publisher?: string; type: ERC20ContractType;};
let returnType: Promise<string>;
The deployed contract address.