Home

Compute a Keccak-256 hash

POST
https://vinu.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Computes the Keccak-256 (SHA-3) hash of the given hex-encoded data.

Input must be an even number of hex digits. Odd-length input fails with -32602 invalid argument 0: json: cannot unmarshal hex string of odd length into Go value of type hexutil.Bytes.

Body

application/json
jsonrpcstringrequired
methodstringweb3_sha3required
paramsArray<string>required

Array containing a single hex-encoded data string to hash.

idintegerrequired

Response

200OK

JSON-RPC response with the Keccak-256 hash of the input data

405Method Not Allowed

Method not served by this endpoint. The body is the plain-text string Method Not Allowed, not JSON.

422Unprocessable Entity

Missing API key - the api-key header was absent. The body is the plain-text string Missing API_key, not JSON.