klay_sha3

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

NOTE: This API is effective after Klaytn v1.8.0

📘

Supported on Klaytn (mainnet) only.

Parameters

Request

NameTypeDescription
dataDATAThe data to convert into a SHA3 hash.

Result

TypeDescription
32-byte DATAThe SHA3 result of the given data.

API Endpoint

The format of a Klaytn API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/klaytn/

Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/klaytn/

Example

// Request
curl https://open-platform.nodereal.io/{{apiKey}}/klaytn/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"klay_sha3","params":["0x11223344"],"id":1}' 

// Result
{
  "jsonrpc":"2.0",
  "id":1,
  "result":"0x36712aa4d0dd2f64a9ae6ac09555133a157c74ddf7c079a70c33e8b4bf70dd73"
}