curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/web3_sha3 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "web3_sha3",
"id": 1,
"params": [
"0x68656c6c6f20776f726c64"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
TRON API method that returns the Keccak-256 hash of the given data. This method provides Ethereum-compatible interface for TRON blockchain.
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/web3_sha3 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "web3_sha3",
"id": 1,
"params": [
"0x68656c6c6f20776f726c64"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
jsonrpc
— the JSON-RPC protocol version (always “2.0”)method
— the method name (always “web3_sha3”)params
— array containing method parameters
data
— hex-encoded data to be hashedid
— request identifier (number or string)jsonrpc
— the JSON-RPC protocol version (“2.0”)id
— the request identifier that matches the requestresult
— hex-encoded Keccak-256 hash of the input datajsonrpc web3_sha3
method is used for:
Keccak-256 hash of the input data
The response is of type object
.