Skip to main content

Parameters

chainId
string
default:"5000"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"web3_sha3"
required
JSON-RPC method name.
params
object
required
Parameters for method web3_sha3: [data].Positional parameters for web3_sha3:
  • params[]: String - The data to convert into a SHA3 hash.

Returns

result
string
Data - The Keccak-256 hash of the given string. Example: “0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad”.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=5000 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "web3_sha3",
    "params": [
      "0x68656c6c6f20776f726c64"
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad"
}