- How to pass JSON in PowerShell command to DUNES without escaping quotes?
- How to retrieve a list of opened and closed wallets?
- Download PowerShell version at least 7.3.
- Run PowerShell 7 and type:
$PSNativeCommandArgumentPassing = 'Standard'
- Now it is enough to surround your JSON with single quotes, i.e.
dunes.bat -- cleos set account permission <ACCOUNT> active '{"threshold":1,"keys":[],"accounts":[{"permission":{"actor":"eosio.null","permission":"active"},"weight":1},{"permission":{"actor":"<ACCOUNT>","permission":"eosio.code"},"weight":1}],"waits":[]}' owner -p <ACCOUNT>
Solution based on https://stackoverflow.com/a/74440425.
On Linux in Bash it is enough to just simply use command from step 3 (with the difference of script name dunes
on Linux vs dunes.bat
on Windows).
By default the command cleos wallet list
lists only opened wallets. To find the list of all wallets you can try the following command:
dunes -- ls /root/eosio-wallet/