getInitBytecodeWithSalt

Generates the initialization bytecode with salt for a contract deployment.

Example

import { getInitBytecodeWithSalt } from "thirdweb/utils";
const initBytecodeWithSalt = getInitBytecodeWithSalt({
bytecode,
encodedArgs,
salt,
});
function getInitBytecodeWithSalt(
options: GetInitiBytecodeWithSaltOptions,
): Hex;

Parameters

The options for generating the initialization bytecode.

Type

let options: GetInitiBytecodeWithSaltOptions;

Returns

let returnType: ox__Hex.Hex;

The initialization bytecode with salt.