Deploy stylus contract with constructor params
import { deployWithStylusConstructor } from "thirdweb/stylus";const transaction = deployWithStylusConstructor({ client, chain, bytecode, constructorParams, abi,});await sendTransaction({ transaction, account });
function deployWithStylusConstructor( options: DeployWithStylusConstructorOptions,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options deploying contract with constructor
let options: { abi: Abi; bytecode: `0x${string}`; chain: Chain; client: ThirdwebClient; constructorParams: Record<string, unknown>;};
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
Prepared transaction to call stylus deployer