web3_sha3 - Polygon

web3_sha3. Generate the Keccak-256 hash of the given data

web3_sha3 - polygon [Value: 10CU]
Traces the execution of all transactions in a block specified by its hash
Use cases

Use cases

  • Generate a Keccak-256 hash of input data
  • Verify data integrity by hashing
  • Create unique identifiers based on input content
Constraints

Constraints

  • Requires input data to be in hexadecimal format
  • Input size affects processing time
  • Returned hash may not be human-readable
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --location 'https://polygon.drpc.org' \
--header 'Content-Type: application/json' \
--data '{
    "jsonrpc": "2.0",
    "method": "web3_sha3",
    "params": ["0x68656c6c6f20776f726c64"],
    "id": 1
}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x47173285a8d7341e3180db76a8f0a1048e8c9b84c0553e149eb1e8d330baf94d"
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersstring
string
datastring
The data to be hashed. The input data should be a hexadecimal string.

Response

200
The version of the client, including the name and version number, as a string

Response params

object
idinteger
jsonrpcstring
resultstring