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: ox__Hex.Hex;

The salt hash of the bytecode.