Request
curl https://eth.l0vdinfra.com/YOUR_KEY \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1,"method":"web3_sha3","params":["0x68656c6c6f20776f726c64"]}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad"
}
Params and your endpoint
Parameters
datastringrequired- Hex-encoded bytes to hash.
Returns
string 32-byte Keccak-256 hash.
When to use it
Compute Keccak-256 of bytes on the node, e.g. to check an event signature hash.
How to read the result
32-byte hash. keccak256("hello world") = 0x47173285…
Tips
- Hash locally instead (viem keccak256, ethers id, web3.py Web3.keccak); it saves a network call.
Related methods