web3_sha3

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

Ethereum.org API Reference

Parameters

DATA - the data to convert into a SHA3 hash REQUIRED

Returns

DATA - The SHA3 result of the given string.

Example

Request

curl --request POST \
     --url https://endpoints.omniatech.io/v1/RPC_ENDPOINT \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "params": [
    "0x68656c6c6f20776f726c64"
  ],
  "method": "web3_sha3"
}
'

Response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad"
}

Last updated