LockKey

This API locks an account. A locked account cannot send out Script tokens.

RPC Method: scriptcli.LockKey

Query Parameters

address: The address of the account to be locked

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.LockKey","params":[{"address":"0x2E833968E5bB786Ae419c4d13189fB081Cc43bab"}],"id":1}' http://localhost:16889/rpc

// Result

{

"jsonrpc": "2.0",

"id": 1,

"result": {

"unlocked": false

}

}

Last updated