web3_sha3

返回给定数据的 Keccak-256(不是标准化的 SHA3-256)。

Parameters

  • DATA [必须] 需要转换为 Sha3 的数据,通常为十六进制数据。如: hello world 转十六进制为: 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"
}

最后更新于