parity_hashContent - 计算指定内容的哈希
parity_hashContent
调用计算指定URL处的文件内容的哈希。
调用参数
- 要计算哈希的内容的URL
返回值
parity_hashContent
调用返回指定内容的SHA-3哈希。
示例代码
请求:
~$ curl --data '{
"method":"parity_hashContent",
"params":[
"https://raw.githubusercontent.com/paritytech/parity-ethereum/master/README.md"
],
"id":1,
"jsonrpc":"2.0"
}' -H "Content-Type: application/json" -X POST localhost:8545
响应结果:
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x2547ea3382099c7c76d33dd468063b32d41016aacb02cbd51ebc14ff5d2b6a43"
}