← Robinhood Chain overview
Robinhood Chain · web3
web3_sha3
Returns the Keccak-256 hash of the given data.
Standard web3 namespace helper — accepts a hex-encoded byte string and returns a 32-byte hash.
Parameters
datarequiredHex-encoded bytes to hash.
Schema{ "type": "string", "pattern": "^0x[0-9a-fA-F]*$" }
cURL
Endpoint: https://rh-mainnet.eu1.azxa.io/<api-key> — replace <api-key> with your API key from the Azxa app .
Terminal
curl -X POST https://rh-mainnet.eu1.azxa.io/<api-key> \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"web3_sha3","params":["0x68656c6c6f"]}'Example request
JSON-RPC
{
"jsonrpc": "2.0",
"id": 1,
"method": "web3_sha3",
"params": [
"0x68656c6c6f"
]
}Result
32-byte Keccak-256 hash.
Example response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1c8aff950685c2ed4bc3174f3473477b146d5c8790f676d5988d2e73583d0688"
}Schema
{
"type": "string",
"pattern": "^0x[0-9a-fA-F]{64}$"
}