deployContract

Deploy a contract on a given chain

Example

import { deployContract } from "thirdweb/deployContract";
const address = await deployContract({
client,
chain,
bytecode: "0x...",
constructorAbi: {
inputs: [{ type: "uint256", name: "value" }],
type: "constructor",
},
constructorParams: [123],
});

Parameters

Returns

  • a promise that resolves to the deployed contract address