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

Last updated