Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.26 KB

FAQ.md

File metadata and controls

23 lines (17 loc) · 1.26 KB

How to pass JSON in PowerShell command to DUNES without escaping quotes?

  1. Download PowerShell version at least 7.3.
  2. Run PowerShell 7 and type: $PSNativeCommandArgumentPassing = 'Standard'
  3. 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).

How to retrieve a list of opened and closed wallets?

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/