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