Skip to main content

soliditySha3

Callable

  • soliditySha3(...values: Sha3Input[]): undefined | string

  • Will tightly pack values given in the same way solidity would then hash. returns a hash string, or null if input is empty

    @example
    console.log(web3.utils.soliditySha3({ type: "string", value: "31323334" }));
    > 0xf15f8da2ad27e486d632dc37d24912f634398918d6f9913a0a0ff84e388be62b

    Parameters

    • rest...values: Sha3Input[]

      the input to return the tightly packed values

    Returns undefined | string

    • the keccack246 of the tightly packed values