POSTweb3_sha3

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.

Request Body
idintegerrequired
jsonrpcstringrequired
methodstringrequired
paramsoneOf[]

Enter the following parameters as an array with the appropriate types.

  1. data in hex: Data to apply the SHA3 hash to. This value must be a hex-encoded string with a '0x' prefix.
params[0]string

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

응답 본문이 없습니다.

X-API-KEY
RequestCU10
cURL
curl -X POST "https://bnb-mainnet.nodit.io/" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "web3_sha3",
  "params": [
    "0x68656c6c6f204e4f444954"
  ]
}'
Response
Example · 200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x274020d2b9b210b079f3898f94123f710f5ab65525f23c7ad9e04e425d3648bd"
}