IsKeyUnlocked
This API returns whether an account is currently unlocked.
RPC Method: scriptcli.IsKeyUnlocked
Query Parameters
address: The address of the account to be checked
Returns
unlocked: A boolean indicating if the account is still unlocked
// Request
curl -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"scriptcli.IsKeyUnlocked","params":[{"address":"0x2E833968E5bB786Ae419c4d13189fB081Cc43bab"}],"id":1}' http://localhost:16889/rpc
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"unlocked": false
}
}
Last updated