safe-global/safe-cli

Support scripting

Closed this issue · 3 comments

Uxio0 commented

Currently the only way to use the safe-cli is using the interactive mode. For example, to send some ether a user must run the app, load the owners and then call send_ether and press intro.

An automatic way to do it, like python safe_cli --node <node_url> --private-key <owner_private_key_1> --private-key <owner_private_key_2> send-ether --wei <ether_in_wei> --to <address>

Needed for a first approach:

  • Being able to execute transactions or batch transactions
  • Being able to load and execute transactions from a file (the transaction builder in the UI can export files, use the same format)

Agreed. Especially, because the interactive mode requirement also makes it unusable in remote servers like Google Colab. I made a Jupyter notebook to make it easy for users to run the safe-cli from the browser since some users won't be able to install the command line themselves.

I get the following error:

WARNING: your terminal doesn't support cursor position requests (CPR).

Which I think is related to the lack of interactivity. So this causes the load safe command to hang and never complete.

I think this is a high priority fix as many issues that users face through UI can be solved through CLI and many users may not be able to use the CLI but they can use the notebook.

Tested and verified, many thanks!