computeDeploymentAddress

Computes the deployment address for a contract based on the given options.

Example

import { computeDeploymentAddress } from "thirdweb/utils";
const deploymentAddress = computeDeploymentAddress({
bytecode,
encodedArgs,
create2FactoryAddress,
salt,
});
function computeDeploymentAddress(
options: ComputeDeploymentAddressOptions,
): string;

Parameters

The options for computing the deployment address.

Type

let options: ComputeDeploymentAddressOptions;

Returns

let returnType: string;

The computed deployment address.