POST
/
95e61622bf6a8af293978377718e3b77
/
jsonrpc
/
web3_sha3
web3_sha3
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, providing an Ethereum-compatible interface for cryptographic hashing on TRON blockchain.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • 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 hashed
  • id — request identifier (number or string)

Response

  • jsonrpc — the JSON-RPC protocol version (“2.0”)
  • id — the request identifier that matches the request
  • result — hex-encoded Keccak-256 hash of the input data

Use case

The jsonrpc web3_sha3 method is used for:
  • Computing Keccak-256 hashes for data verification and integrity checks
  • Generating hash values for smart contract function signatures and event topics through Web3 interfaces
  • Implementing cryptographic operations in dApps that require consistent hashing algorithms
  • Creating data fingerprints and merkle tree components for blockchain applications

Body

application/json

Response

200 - application/json

Keccak-256 hash of the input data

The response is of type object.