parity_checkRequest - 检查请求是否成功
parity_checkRequest
调用获取之前发送给parity_postTransaction
或
parity_postSign
的请求的哈希。如果请求被驳回则返回一个JSON-RPC错误。
调用参数
- 发送给签名器的请求的ID
返回结果
parity_checkRequest
调用返回请求的32字节长哈希,如果请求未被签名则返回null。
示例代码
请求:
~$ curl --data '{"method":"parity_checkRequest","params":["0x1"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
响应:
{
"id": 1,
"jsonrpc": "2.0",
"result": "0xde8dfd9642f7eeef12402f2a560dbf40921b4f0bda01fb84709b9d71f6c181be"
}