You can use the token creator application to create a token and sent it to your wallet. This application is purely for demonstration purposes.
Creating a Solana token requires the following steps:
- Creating a new Mint account
- Creating an associated token account
- Minting an amount of the token to the associated token account
- Adding the token metadata to the mint account
Mint accounts hold information about the token such as how many decimals the token has and who can mint new tokens.
You can create a custom keypair for the mint account by
grinding a keypair.
This keypair's public key will be used to have a vanity address
for the token. Create a new mint account with that key
by first initializing the account and space for the mint
account, then calling createInitializeMintInstruction
.
These instructions can be added and executed in the same
transaction.