prepareDirectDeployTransaction
Prepares a direct deploy transaction with ABI.
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],});
function prepareDirectDeployTransaction(options: { abi: Abi; bytecode: `0x${string}`; constructorParams?: Record<string, unknown>;
The options for preparing the transaction.
let options: { abi: Abi; bytecode: `0x${string}`; constructorParams?: Record<string, unknown>;};
[], AbiFunction,>;
The prepared transaction.