QuickStart: Running a Node
The Basics
The following instructions are written for Linux.
PastelUp
PastelUp is Pastel Network's software for interfacing with our distributed blockchain software and is the best way to get started using Pastel. It functions as a utility wrapper for the node-operating binaries that communicate with the blockchain.
PastelUp installs, updates, and starts/stops the Pastel daemon (pastelD), as well as everything needed for the storage layer to operate (e.g., WalletNode, SuperNode)
PastelUp is undergoing constant development. Be sure to always check GitHub for the most up-to-date documentation: https://github.com/pastelnetwork/pastelup
Download the latest release of PastelUp from GitHub or directly via: https://download.pastel.network/#beta/
You can install PastelUp from the terminal as follows (make sure to change the url below to reflect the latest version number for PastelUp):
Install a Node
This command will install pasteld and pastel-cli in /home/<username>/pastel/
For testnet add flag `-n=testnet`
Run your Node
After installing the node:
You should see some output that looks like:
Make sure you're connected to the network
Change directories to the
pasteld/pastel-cli
installation location (Default/home/<username>/pastel/
)Use pastel-cli to connect to a running node:
This will print the number of nodes you're connected to. This might not work right away if you're just connecting to the network, but will work as your node is syncing to the main network.
Setup your Wallet and PastelID
You will need a Pastel address to send and receive PSL, and a PastelID to create NFTs. Your PastelID is used as a unique identifier to allow other Pastel users to identify creators and holders of assets. You might want multiple wallets, but you probably only want one PastelID.
Navigate to your pasteld/pastel-cli installation location (Default /home/<username>/pastel/). Then use pastel-cli to get a new chain address:
Backing up that pastel address with:
Will allow you to import that key at a later date with:
Remember to store your private key in a secure and private location
Next you should get a pastelID so you can identify your art on the network. Once again, use pastel-cli:
You will see a much larger key has printed to the console. You must register this newly generated pastel ID on the network in order to be able to use the APIs.
Register the artist with network:
./pastel-cli tickets register id <artist-pastel-id> "passphrase" <artist-address>
You would need 1000 PSL to be able to register your ID on the network.
On Testnet you can use Pastel's Testnet faucet to get the required LSP
To recover your pastelID for your wallet at a later date, you can import the key in combination with your passphrase:
Stop your Node
Should yield output similar to:
Update your Node
Make Sure your node is synced with the Network
In order to be able to do anything useful on the Pastel Network, please make sure that your node is synced fully with the network. One way of making sure is to use `mnsync status` API
./pastel-cli
mnsync status
Should yield output similar to:
Register NFTs
The core node functionality above will connect you to the blockchain, but to get started using Pastel to register and search for art, you should get connected to the layer built on top of PSL, beginning with walletnode.
Head on over to WalletNode to get started.
Last updated