@ioplus/snapcli is a powerful command-line tool designed for the Snapshot voting system. Easily manage your wallets and cast votes, making your voice heard in decentralized governance! 🗳️💪
Install @ioplus/snapcli globally using npm:
npm install -g @ioplus/snapcli
After installation, you can run the tool using either the snapcli
or snap
command.
$ snap
or
$ snapcli
Usage: snapcli <command> [options]
Options:
-V, --version output the version number
-d, --debug show debug log (default: false)
-h, --help display help for command
Commands:
login [privateKey] login with private key. Then your no need specify --privateKey any more
loginKeystore <keyStore> <password> login with keystore. input your keyStore file path or keyStore json and password
list|listWallets list your saved wallets and active wallet
use [address] use wallet address
del|delete [address] delete wallet address
vote [options] [space] vote for specify space,like <aave.eth> You can find your spaces at https://snapshot.org/#/.
clean [item] clean local settings
update|u update snapcli
help [command] display help for command
$ snap login [privateKey]
Securely encrypt and save your private key locally. This eliminates the need to specify --privateKey
for every operation.
$ snap list|listWallets
Display all wallet addresses saved locally, as well as the currently active wallet address.
$ snap use [address]
Specify the wallet address you want to use. This is particularly useful for managing multiple wallets!
$ snap vote [options] [space]
Cast a vote for a specified project space. For example: snap vote aave.eth
You can find project spaces you're interested in on Snapshot.
$ snap clean [item]
(In development) Used to reset configurations when encountering errors.
$ snap proxy [proxyUrl]
(In development) Set up a request proxy to optimize your network connection.
We welcome all forms of contributions! If you have any ideas, suggestions, or have found a bug, please feel free to open an issue or submit a pull request.
Apache
If you have any questions or need support, please reach out to us through GitHub Issues.
Happy voting! 🎉🚀