Deploys an thirdweb ERC721 contract of the given type. On chains where the thirdweb infrastructure contracts are not deployed, this function will deploy them as well.
import { deployERC721Contract } from "thirdweb/deploys";const contractAddress = await deployERC721Contract({ chain, client, account, type: "DropERC721", params: { name: "MyNFT", description: "My NFT contract", symbol: "NFT",});
function deployERC721Contract(options: { account: Account; chain: Readonly<ChainOptions & { rpc: string }>; client: ThirdwebClient; params: ERC721ContractParams; type: ERC721ContractType;}): Promise<string>;
The deployment options.
let options: { account: Account; chain: Readonly<ChainOptions & { rpc: string }>; client: ThirdwebClient; params: ERC721ContractParams; type: ERC721ContractType;};
let returnType: Promise<string>;
The deployed contract address.