getSaltHash

Calculates the salt hash for a given bytecode.

Example

import { getSaltHash } from "thirdweb";
const saltHash = getSaltHash(bytecode);
function getSaltHash(bytecode: string): Hex;

Parameters

The bytecode to calculate the salt hash for.

Type

let bytecode: string;

Returns

let returnType: `0x${string}`;

The salt hash of the bytecode.