web3_sha3
网络: Arbitrum Sepolia · 测试网 · Chain ID 421614(0x66eee)
计为 1 个 Request。 计费规则见 Request Counting。
描述
返回给定数据的 Keccak-256 哈希。
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
data | hex | 是 | 要计算哈希的数据(十六进制编码) |
请求
{
"jsonrpc": "2.0",
"method": "web3_sha3",
"params": ["0x68656c6c6f"],
"id": 1
}代码示例
curl -X POST https://arbitrum-sepolia-rpc.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"web3_sha3","params":["0x68656c6c6f"],"id":1}'