⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

web3_sha3

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

Parameters

See Ethereum JSON-RPC spec for parameters of web3_sha3.

Examples

curl -X POST https://api-chiliz-mainnet-archive.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "web3_sha3",
"params": [
"0x68656c6c6f20776f726c64"
],
"id": 1
}'

Response

Returns the Keccak-256 hash of the input data. Common error responses:

  • {"code": -32700, "message": "Parse error"} - Invalid JSON
  • {"code": -32602, "message": "Invalid params"} - Invalid parameters
  • {"code": -32603, "message": "Internal error"} - Server error