web3-utilsFunctionssoliditySha3soliditySha3 CallablesoliditySha3(...values: Sha3Input[]): undefined | stringWill tightly pack values given in the same way solidity would then hash. returns a hash string, or null if input is empty@exampleconsole.log(web3.utils.soliditySha3({ type: "string", value: "31323334" }));> 0xf15f8da2ad27e486d632dc37d24912f634398918d6f9913a0a0ff84e388be62bParametersrest...values: Sha3Input[]the input to return the tightly packed valuesReturns undefined | stringthe keccack246 of the tightly packed values
Will tightly pack values given in the same way solidity would then hash. returns a hash string, or null if input is empty