web3_sha3 - Ethereum
web3_sha3 on Ethereum: returns the Keccak-256 hash of the given data. Parameters, response and request example for the RPC Fast endpoint.
Returns the Keccak-256 hash of the given data.
Parameters
data(data) — Hex-encoded bytes to hash
Returns
32-byte Keccak-256 hash.
Example
Request
curl https://eth-mainnet.rpcfast.com/?api_key=<API_KEY> \
-X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"web3_sha3","params":["0x68656c6c6f"]}'Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"
}See Compute Units for the price of this method on Ethereum.
Last updated