L0vdL0vd

web3_sha3

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

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"
}
参数与您的端点

参数

datastring必填
Hex-encoded bytes to hash.

返回值

string 32-byte Keccak-256 hash.

适用场景

Compute Keccak-256 of bytes on the node, e.g. to check an event signature hash.

如何解读结果

32-byte hash. keccak256("hello world") = 0x47173285…

提示

  • Hash locally instead (viem keccak256, ethers id, web3.py Web3.keccak); it saves a network call.

相关方法