Docs

getInitBytecodeWithSalt

Generates the initialization bytecode with salt for a contract deployment.

Example

import { getInitBytecodeWithSalt } from "thirdweb/utils";
const initBytecodeWithSalt = getInitBytecodeWithSalt({
bytecode,
encodedArgs,
salt,
});

Parameters

Returns

The initialization bytecode with salt.