Skip to main content
POST
web3_sha3
Tempo API method that returns the Keccak-256 hash of the given data. This is the same hashing algorithm used by Ethereum for various purposes.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • data — the data to hash (hex encoded)

Response

  • result — the Keccak-256 hash of the input data

Use case

The web3_sha3 method is useful for:
  • Computing function selectors (first 4 bytes of keccak256 of function signature)
  • Computing event topics
  • General-purpose hashing

web3_sha3 code examples

Body

application/json
jsonrpc
string
default:2.0
method
string
default:web3_sha3
params
any[]

Data to hash (hex encoded)

id
integer
default:1

Response

200 - application/json

Keccak-256 hash

jsonrpc
string
id
integer
result
string

The Keccak-256 hash of the given data

Last modified on June 22, 2026