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.

Связанные методы