Skip to main content

web3_sha3

POST

Applies the SHA3 (Keccak-256) hash function to the input data and returns the result. This method is primarily used to verify data integrity or generate unique identifiers for specific data. For example, it can be used to hash input data for storage on the blockchain or to compute unique hash values.
param[0]
입력데이터stringrequired
Data to apply the SHA3 hash to. This value must be a hex-encoded string with a '0x' prefix. For example, "0x68656c6c6f204e4f444954" represents "hello NODIT".
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://bnb-mainnet.nodit.io' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: nodit-demo' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "web3_sha3",
"params": [
"0x68656c6c6f204e4f444954"
]
}'