web3_sha3
Returns Keccak-256 (not SHA3-256) hash of the given data.
Parameters
- Data -
DATA
- The data to hash
{
"jsonrpc": "2.0",
"method": "web3_sha3",
"params": ["0x68656c6c6f20776f726c64"],
"id": 1
}
Returns
DATA
- The Keccak-256 hash of the given string.
Example
const hash = await provider.send('web3_sha3', ['0x68656c6c6f20776f726c64']);
console.log('Keccak-256 hash:', hash);
Related Methods
- eth_call - Execute contract call