deployPackContract

Deploy a thirdweb Pack contract

Example

import { deployPackContract } from "thirdweb/extensions/deploy";
const packAddress = await deployPackContract({
account,
client,
chain,
params: {
name: "Pack contract name",
symbol: "PACK1155",
},
});
function deployPackContract(options: {
account: Account;
chain: Readonly<ChainOptions & { rpc: string }>;
client: ThirdwebClient;
}): Promise<string>;

Parameters

params for deploying Pack contract

Type

let options: {
account: Account;
chain: Readonly<ChainOptions & { rpc: string }>;
client: ThirdwebClient;
};

Returns

let returnType: Promise<string>;