deployWithStylusConstructor

Deploy stylus contract with constructor params

Example

import { deployWithStylusConstructor } from "thirdweb/stylus";
const transaction = deployWithStylusConstructor({
client,
chain,
bytecode,
constructorParams,
abi,
});
await sendTransaction({ transaction, account });
function deployWithStylusConstructor(

Parameters

The options deploying contract with constructor

Type

let options: {
abi: Abi;
bytecode: `0x${string}`;
chain: Chain;
client: ThirdwebClient;
constructorParams: Record<string, unknown>;
};

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

Prepared transaction to call stylus deployer