Skip to main content

web3_sha3

POST

Returns the Keccak-256 hash of the input data.Note that this is Keccak-256, not the standardized SHA3-256.
param[0]
datastringrequired
The data to hash. Pass it as a hexadecimal string.
Responses
codestringrequired
Code identifying the cause of the failed request.
messagestringrequired
Detailed message including the name and value of the invalid parameter.
{
"code": "ERROR_CODE",
"message": "Unauthorized"
}
cURL
curl -X POST 'https://tron-mainnet.nodit.io' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: nodit-demo' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "web3_sha3",
"params": [
"0x68656c6c6f20776f726c64"
]
}'