post https://api.infstones.com/neo/mainnet/
Opens the specified wallet.
This method is disabled by default.
Parameters
Object Name | Required | Type | Detail |
---|---|---|---|
PATH | ✅ | String | The wallet file path. |
PASSWORD | ✅ | String | The wallet password in plain text. |
"params": [
"/home/ubuntu/neo/wallet.json", "password"
],
Result
true
if the wallet is successfully opened, otherwise the wallet cannot be opened.
Example
Request
curl <your-endpoint> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0","method": "openwallet","params": ["/home/ubuntu/neo/wallet.json", "password"],"id": 1}'
Return
If
Access denied
is returned this is becauseopenwallet
is disabled. To enable it, you can removeopenwallet
in the field DisabledMethods in RpcServer config.json.
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}