Pastel Network
  • Introduction
    • Pastel Overview
    • Pastel Token (PSL)
    • PSL Token Economics
    • Pastel Consensus Protocol
    • Key Features
  • Basics
    • Smart Ticket Structure
    • Fees and Burn
    • SuperNodes
      • SuperNode Staking
      • SuperNode States & Implications for Stake
      • SuperNode Operator Selection
      • SuperNode Fees
    • Governance
    • Accounts
  • Development Guide
    • Types of Pastel installations
      • Pastel Network Architecture
    • Requirements
      • Default directories
    • QuickStart: Running a Node
    • WalletNode
      • API
        • Sense API
        • Cascade API
        • NFT API
      • GRPC Interface
    • SuperNode
      • GRPC Interface
    • Pasteld Daemon
      • Pasteld CLI Implementation
      • Pasteld JSON-RPC API
    • Pastel-CLI
    • Understanding Smart Tickets
      • NFT Tickets
      • PastelID Tickets
    • Testing
    • Tutorials
      • Pastel Wallet App
    • Public Endpoints & Resources
    • Configurations
  • Sense Protocol
    • Sense Overview
    • Sense Basics
    • Building with Sense API
  • Cascade Protocol
    • Cascade Overview
    • Cascade Basics
    • Building with Cascade API
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Development Guide

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

PreviousPasteld JSON-RPC APINextUnderstanding Smart Tickets

Last updated 3 years ago

Was this helpful?