unlocks the wallet’s address manager and relocks it after timeout has expired. If the wallet is already unlocked and the new passphrase is correct, the current timeout is replaced with the new one. The wallet will be locked if the passphrase is incorrect or any other error occurs during the unlock.
passphrase: (string)
wallet private passwordtimeout: (numeric)
negative
unlock indefinitelypostive
unlock duration, unit secondnull
-32000
invalid passphrase for master private key
curl -k -u "test:test" -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"1.0","method":"wallet_unlock","params":["password", 999999999],"id":1}' http://127.0.0.1:8130/api
{"jsonrpc":"2.0","id":1,"result":null}
© Copyright Qitmeer 2021.
This work is licensed under a Creative Commons Attribution 4.0 International License