QuickStart: Running a Node
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-linux-amd64 install node -r latest
This command will install pasteld and pastel-cli in
After installing the node:
./pastelup-linux-amd64 start node
You should see some output that looks like:
- Change directories to the
pasteld/pastel-cliinstallation location (Default
- 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.
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:
./pastel-cli dumpprivkey <address you just printed>
Will allow you to import that key at a later date with:
./pastel-cli importprivkey <private key you just printed>
Next you should get a pastelID so you can identify your art on the network. Once again, use pastel-cli:
./pastel-cli pastelid newkey "<passphrase>"
You will see a much larger key has printed to the console. To recover your pastelID for your wallet at a later date, you can import the key in combination with your passphrase:
./pastel-cli pastelid importkey "<key>" "<passphrase>"
./pastelup-linux-amd64 stop node
Should yield output similar to:
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.
Make Sure your node is synced with the Network
In order to be able to register NFTs or basically do anything useful with WalletNode, please make sure that your node is synced fully with the network. One way of making sure is to use `masternode top` API
./pastel-cli masternode top
must return a list of top 10 masternodes on the network. An empty list would mean that you need to wait for your node to sync fully. Nevertheless, you can still install & start WalletNode in the meanwhile.