Docs

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...",
});

Parameters

Returns

a promise that resolves to the deployed contract address