Mint a PSP22 token on Pop
This tutorial will teach you how to mint a PSP22 token on Pop
Introduction
PSP stands for Polkadot Smart Contract Proposal. These are specifications for Polkadot smart contracts. More info can be found here.
In this tutorial, we will use an ink! smart contract that implements the PSP22 fungible token standard for Polkadot.
Get Started
Let's start!
Create the PSP22 token
In the next command, we will deploy and create a PSP22 token with the following params:
Name
: AWESOME
Symbol
: AWE
Decimals
: 10
Supply
: 10_000_000
The following command will spin up a local blockchain, deploy the PSP22 smart contract to the blockchain, and instantiate it with the above parameters.
Awesome! The contract has been deployed. This means your token has been created!
Let's check by doing a few RPC calls.
Check the token name:
The above call should return "AWESOME" as the token name.
Check the total supply:
The above should return a total supply of 10_000_000
Let's transfer 1_000 AWE tokens from the owner (Alice) to Bob:
Let's confirm that Bob now has 1_000 AWE tokens:
Congrats! You have successfully used a PSP22 contract to mint a token and call its transfer message.
Last updated