prepareDirectDeployTransaction

Prepares a direct deploy transaction with ABI.

Example

import { prepareDirectDeployTransaction } from "thirdweb/deploys";
import { ethereum } from "thirdweb/chains";
const tx = prepareDirectDeployTransaction({
client,
chain: ethereum,
bytecode: "0x...",
constructorAbi: {
inputs: [{ type: "uint256", name: "value" }],
type: "constructor",
},
constructorParams: [123],
});

Parameters

Returns

  • The prepared transaction.