Returns Keccak-256 (not the standardized SHA3-256) of the given data.


Params - a string array containing (required):

  • DATA(hex string, required) - the data in hex form to convert into a SHA3 hash.

web3_sha3 takes in a hexadecimal number, not a direct string. So, if you wanted to convert "hello world" to it's Keccak-256 hash you would need to input the hex number for "hello world", which is "68656c6c6f20776f726c64".


DATA(hex string) - the Keccak-256 hash of the given string.

Click Try It! to start a request and see the response here!