UnlockKey

This API unlocks an account. Only unlocked accounts are allowed to send out Script tokens.

RPC Method: scriptcli.UnlockKey

Query Parameters

address: The address of the account to be unlocked

password: The password for the account

Returns

unlocked: A boolean indicating if the account is actually unlocked

// Request

curl -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"scriptcli.UnlockKey","params":[{"address":"0x2E833968E5bB786Ae419c4d13189fB081Cc43bab", "password":"qwertyuiop"}],"id":1}' http://localhost:16889/rpc

// Result

{

"jsonrpc": "2.0",

"id": 1,

"result": {

"unlocked": true

}

}

Last updated