Pastel-CLI

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).

Usage:
  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

Options:

  -?
       This help message

  -conf=<file>
       Specify configuration file (default: pastel.conf)

  -datadir=<dir>
       Specify data directory

  -testnet
       Use the test network

  -regtest
       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.

  -rpcconnect=<ip>
       Send commands to node running on <ip> (default: 127.0.0.1)

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

  -rpcwait
       Wait for RPC server to start

  -rpcuser=<user>
       Username for JSON-RPC connections

  -rpcpassword=<pw>
       Password for JSON-RPC connections

  -rpcclienttimeout=<n>
       Timeout in seconds during HTTP requests, or 0 for no timeout. (default:
       900)

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

-conf

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

-datadir

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.

-testnet

WIP

-regtest

WIP

-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.

-rpcclienttimeout

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

-stdin

WIP

Last updated