POSTkaia_sha3

Kaia Kairoshttps://kaia-kairos.nodit.io/

Returns the Keccak-256 hash of the input data. The result is Keccak-256, not the standardized SHA3-256, so it matches the keccak256 result in smart contracts.

Request Body
idintegerrequired
jsonrpcstringrequired
methodstringrequired
paramsoneOf[]required

Enter the following parameters as an array with the appropriate types.

  1. data in hex: Data to apply the Keccak-256 hash to. This value must be a hex-encoded string with a '0x' prefix.
params[0]string

Data to apply the Keccak-256 hash to. This value must be a hex-encoded string with a '0x' prefix. For example, "0x68656c6c6f204e4f444954" represents "hello NODIT".

Responses

No response body.

X-API-KEY
RequestCU10
cURL
curl -X POST "https://kaia-kairos.nodit.io/" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "kaia_sha3",
    "params": [
      "0x68656c6c6f204e4f444954"
    ]
  }'
Response
Example · 200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xcc28ea57fec9181e3c636b9fcf8517975312129a4cf95422d1c64d5caf68facd"
}