personal_lockAccount

描述:根据账户地址重新锁定某一解锁的账户

parameter

数据类型 备注
String, 20 字节 账户地址
"params": ["0x32ffc94F9716b4B0bbA6ce93BFE7CeF12C3F743F"]

return

数据类型 备注
Boolean 返回 true 时该账户锁定成功,否则返回失败 message 和 code

example

Request:

curl -X POST \
  http://127.0.0.1:8283 \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "personal_lockAccount", "params": ["0x32ffc94F9716b4B0bbA6ce93BFE7CeF12C3F743F"]}'

Response:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": true
}