How To: use the PAB for Plutus Pioneer Program

Credit to : https://github.com/SIDANWhatever

Necessary files and scripts can be found here: https://github.com/SIDANWhatever/PlutusPioneerProgramme/tree/main/Week06

Step 0: Running a cardano node (fully synced)

Guide can be found here: https://plutus-community.readthedocs.io/en/latest/Environment/Guides/cnodesync/

Step 1: Run the start-testnet-wallet.sh

./start-testnet-wallet.sh
* Error of not recognizing node-socket: Either re-export the node socket or directly pointing to the exisiting node-socket (please find my shell script as uploaded).

Step 2: To Create the wallet create-wallet.sh

./create-wallet.sh MyWallet mysecretpassphrase wallet.json
* The mysecretpassphrase could interchange with any passphrase you want, file name could be either, could be restore-wallet.json as Lars uses.

Step 3: Fund the wallet through Faucet

Step 4: Inform the backend wallet about your new wallet load-wallet.sh

./load-wallet.sh
* After loading the wallet, you could find the wallet ID in terminal, you should put the wallet ID to env.sh for the WALLETID variable (e.g. mine is f9fa0a8955b31c30078541a62644fbeeaa7e200e).

Step 5: Start the testnet chain index start-testnet-chain-index.sh

./start-testnet-chain-index.sh
* Error of Duplicated block is normal, after a while you should see the chain index is syncing (it might take hours).

Step 6: Migrate the PAB migrate-pab.sh

./migrate-pab.sh

Step 7: Start the PAB start-testnet-pab.sh

Step 9: Make sure your env.sh is updated with your ADDRESS & WALLETID

Step 10: Mint Token through activating the contract mint-token-curl.sh

./mint-token-curl 123456 PPP
* The command above means minting the PPP token with quantity of 123456. * Upon successful minting, you should find the Assets tab and PPP appears below.