Pastel-cli provides a command line wrapper for communicating locally with pasteld, and through pasteld, with the blockchain.

Executing pastel-cli will yield an error if the local pasteld daemon cannot be contacted (for instance, because it is not running).

  pastel-cli [options] <command> [params]  Send command to Pastel
  pastel-cli [options] help                List commands
  pastel-cli [options] help <command>      Get help for a command


       This help message

       Specify configuration file (default: pastel.conf)

       Specify data directory

       Use the test network

       Enter regression test mode, which uses a special chain in which blocks
       can be solved instantly. This is intended for regression testing tools
       and app development.

       Send commands to node running on <ip> (default:

       Connect to JSON-RPC on <port> (default: 9932 or testnet: 19932)

       Wait for RPC server to start

       Username for JSON-RPC connections

       Password for JSON-RPC connections

       Timeout in seconds during HTTP requests, or 0 for no timeout. (default:

       Read extra arguments from standard input, one per line until EOF/Ctrl-D
       (recommended for sensitive information such as passphrases)


Supply a configuration file to this option to use a different configuration file. The local default file is ~/.pastel/pastel.conf


Supply a configuration file to this option to use a different data directory. The local default directory is ~/.pastel . Pastel-cli expects pastel.conf to be located in this folder along with wallet, chain, and ID details.





-rpcconnect / -rpcport

Uses local data and configuration data to connect to a pasteld instance hosted at the provided ip address/port configuration.

-rpcuser/ -rpcpassword

Default rpcuser and rpcpassword are set by pastelup on installation of node software. These arguments can be set manually to specify if desired.


By default, pastel-cli will timeout after 900 seconds of no response to a command. Setting this number can adjust this duration.



Last updated