web3_sha3

The web3_sha3 method returns the Keccak-256 hash of the given data. This method computes the cryptographic hash using the Keccak-256 algorithm (note: this is different from SHA3-256). It's commonly used for generating function selectors, computing event signatures, and other cryptographic operations in Ethereum development. The input must be hex-encoded with a 0x prefix.


Parameters

parameter
type
description
data
string (required)
The data to hash (hex-encoded with 0x prefix)
Return Object

Returns the Keccak-256 hash of the input data as a 32-byte hexadecimal string.

Request Example
Request
Response Example
Response

Share on
Share on FacebookShare on XShare on LinkedIn
Did you find this page useful?