deployPublishedContract

Deploy an instance of a published contract on a given chain

Example

import { deployPublishedContract } from "thirdweb/deploys";
const address = await deployedPublishedContract({
client,
chain,
account,
contractId: "MyPublishedContract",
contractParams: [...],
publisher: "0x...",
});
function deployPublishedContract(
): Promise<string>;

Parameters

the deploy options

Type

let options: {
account: Account;
chain: Chain;
client: ThirdwebClient;
contractId: string;
contractParams: Array<unknown>;
implementationConstructorParams?: Array<unknown>;
publisher?: string;
version?: string;
};

Returns

let returnType: Promise<string>;

a promise that resolves to the deployed contract address