Returns Keccak-256 (not the standardized SHA3-256) of the given data.
Parameters
data
: [Required] The data in hex form to convert into a SHA3 hash.
Returns
The SHA3 result of the given string.
Example
Request
curl https://rpc.testnet.tryradi.us/<YOUR-RPC-ENDPOINT> \
-X POST \
-H "Content-Type: application/json" \
-d '
{
"jsonrpc": "2.0",
"method": "web3_sha3",
"params": [
"0xe08080830493e094cae4d474a43b186606bb836f463d4b4072b7fbe38080808080"
],
"id": 1
}
'
Response
{
"jsonrpc": "2.0",
"result": "0bf790cc27f22570b0fb768bd4b9f2d1c25b7ca75b64ae1d567919eff3b78519",
"id": 1
}
Request
cast rpc web3_sha3 \
0xe08080830493e094cae4d474a43b186606bb836f463d4b4072b7fbe38080808080 \
--rpc-url https://rpc.testnet.tryradi.us/<YOUR-RPC-ENDPOINT>
Response
"0bf790cc27f22570b0fb768bd4b9f2d1c25b7ca75b64ae1d567919eff3b78519"