Docs

prepareDeployTransactionForPublishedContract

Prepares a deploy transaction for a published contract.

Example

import { prepareDeployTransactionForPublishedContract } from "thirdweb/contract";
import { ethereum } from "thirdweb/chains";
const tx = await prepareDeployTransactionForPublishedContract({
client,
publisher: "0x1234",
contractName: "MyContract",
version: "1.0.0",
constructorParams: [123, "hello"],
chain: ethereum,
});

Parameters

Returns

A promise that resolves to the prepared deploy transaction.