web3_sha3

Returns the Keccak-256 (not the normalized SHA3-256) of the given data.

Parameters

  • DATA [required] The data that needs to be converted to Sha3, usually hexadecimal data. For example: "hello world" converted to hexadecimal: 0x68656c6c6f20776f726c64

Request

curl https://eth-mainnet.solarpath.io/v1/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "id": 1, "method": "web3_sha3", "params": ["0x68656c6c6f20776f726c64"]}'

Response

{
  "id": 1,
  "jsonrpc": "2.0",
  "result": "0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad"
}

Last updated