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).
1
Usage:
2
pastel-cli [options] <command> [params] Send command to Pastel
3
pastel-cli [options] help List commands
4
pastel-cli [options] help <command> Get help for a command
5
6
Options:
7
8
-?
9
This help message
10
11
-conf=<file>
12
Specify configuration file (default: pastel.conf)
13
14
-datadir=<dir>
15
Specify data directory
16
17
-testnet
18
Use the test network
19
20
-regtest
21
Enter regression test mode, which uses a special chain in which blocks
22
can be solved instantly. This is intended for regression testing tools
23
and app development.
24
25
-rpcconnect=<ip>
26
Send commands to node running on <ip> (default: 127.0.0.1)
27
28
-rpcport=<port>
29
Connect to JSON-RPC on <port> (default: 9932 or testnet: 19932)
30
31
-rpcwait
32
Wait for RPC server to start
33
34
-rpcuser=<user>
35
Username for JSON-RPC connections
36
37
-rpcpassword=<pw>
38
Password for JSON-RPC connections
39
40
-rpcclienttimeout=<n>
41
Timeout in seconds during HTTP requests, or 0 for no timeout. (default:
42
900)
43
44
-stdin
45
Read extra arguments from standard input, one per line until EOF/Ctrl-D
46
(recommended for sensitive information such as passphrases)
Copied!

-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
Export as PDF
Copy link
Contents