Package: pacli
pacliThis simple PeerAssets client is implemented using thepypeerassetsPython library.
This command line program is useful as companion utility during PeerAssets development and testing. It is built for console usage via intuitive and easy to learn set of commands.
It stores the privkey in OS's native keystore, which is automatically unlocked upon logging into active user session.
It handles only one key for now, until HD key support is implemented.InstallationGnu/Linuxpacli is meant for desktop environment (Gnome/KDE), if you want to run it headless see this:https://github.com/jaraco/keyring#using-keyring-on-headless-linux-systemspython3 setup.py install --userTo access it from the command line, place the following in $HOME/.bashrc:export PATH=$PATH:$HOME/.local/binsource ~/.bashrcMain config file is located in$HOME/.config/pacli.WindowsPython 3.5 or greater is needed. Refer to thisguidefor step by step introduction.python -m pip install pacliNext you can addpaclito environment to have it accessible as a CLI command.Main config file is located inC:\Users\USERNAME\AppData\Local/pacli.examples:pacli -- --helpshow all commandspacli config defaultrevert the settings to defaultpacli config set $OPTIONfor example:pacli config set network ppcset the network to "ppc" (Peercoin).pacli address show [--privkey, --pubkey, --wif]show current address, or it's privkey, pubkey or wifpacli address balanceshow balance of the current addresspacli address derive STRINGderive a new address from STRING, useful for P2TH experimentationspacli deck search $KEYsearch for deck by key, can be deck_id, name, issuer, issue_mode or elsepacli deck info $DECK_IDshow full deck detailspacli deck list alllist all decks on the networkpacli deck myshow decks issued by the address I controlpacli deck spawn --name "My own asset" --number_of_decimals 1 issue_mode 4issue a new asset named "My own asset", it will return a hexlified raw transaction.pacli deck decode $HEXdecode protobuf message and display it as json, usable when debbuging deckspacli deck encode --name "My own asset" --number_of_decimals 1 issue_mode 4encode the deck information into hex to be inserted in OP_RETURN, usable when creating decks using something like cointoolkitpacli deck spawn --name "My own asset" --number_of_decimals 1 issue_mode 4 --verify--verify flag presents a link to external toolcointoolkitwhich can be used to preview or debug the deck spawn transaction.pacli deck issue_mode --listlist all supported issue modes and their valuespacli card listdeck_idlist all card transfers related to this deckpacli card balancedeck_idshow balances of addresses on this deckpacli deck --checksumdeck_idverify deck checksum, checksum is difference between issued cards and balances of all the addresses.
If it is not zero, something is wrong with deck balances. This function will return True if all is fine.pacli deck --issue-mode-combo 1,4,8calculate issue mode combo, returns integerpacli card new --deckid $DECKID --receiver [address, address2] --amount [200]fabricate a new CardTransfer object.pacli card transfer --deckid 078f41c257642a89ade91e52fd484c141b11eda068435c0e34569a5dfcce7915 --receiver [n12h8P5LrVXozfhEQEqg8SFUmVKtphBetj] --amount [200] --verifyfarbricate a new CardTransfer, and link to external toolcointoolkitto verify the transaction.pacli card encode --deckid 078f41c257642a89ade91e52fd484c141b11eda068435c0e34569a5dfcce7915 --receiver [n12h8P5LrVXozfhEQEqg8SFUmVKtphBetj] --amount [200]encode the deck information into hex to be inserted in OP_RETURN, usable when creating decks using something like cointoolkitpacli card decode $HEXdecode protobuf message and display it as json, usable when debbuging cardspacli card burn --deckid 078f41c257642a89ade91e52fd484c141b11eda068435c0e34569a5dfcce7915 --receiver [$DECK_ISSUE_ADDRESS] --amount [11] --verifyburn 11 of card on this deck.pacli card issue --deckid 078f41c257642a89ade91e52fd484c141b11eda068435c0e34569a5dfcce7915 --receiver [n29g3XjvxqWLKgEkyg4Z1BmgrJLccqiH3x] --amount [110] --verifyissue 110 cards to n29g3XjvxqWLKgEkyg4Z1BmgrJLccqiH3x.pacli card exportfilenameexport the card transactions to .csv filepacli card parse --deckid 98694bb54fafe315051d2a8f1f5ea4c0050947741ced184a5f33bf4a0081a0bb --cardid e04fb602bd9d9c33d1d1af8bb680108057c2ae37ea987cc15295cc6fc4fd8d97decode and display a single card.bash completion (on *nix platforms)Create file.bash_completionwith content:for bcfile in ~/.bash_completion.d/* ; do
    . $bcfile
doneCreate directory:mkdir ~/.bash_completion.dExport completion file:pacli -- --completion >> .bash_completion.d/pacliActivate:. ~/.bash_completionTab away.