Step 1: Create token
Learn how to create your application token

Prerequisites

CLI
TS
1
npm i -g rly-cli
Copied!
or
1
yarn global add rly-cli
Copied!
1
$ npm i rly-js
Copied!
or
1
yarn add i rly-js
Copied!
If you're experiencing permission issues installing the npm package globally on your local machine, please visit https://docs.npmjs.com/downloading-and-installing-node-js-and-npm

Additional resources

Create your token using the RLY Protocol

If you have already created an SPL token via Solana's Token Program, skip to Step 2: Initializing Token Bonding Curve (TBC).

Step 1.1: Create Token

Configure your token parameters, additional metadata, and the initial token supply to mint. A balance of at least 1 SOL is required.
CLI
TS
1
rly-cli create-token [options]
2
3
Options:
4
-e, --env <string> Solana cluster env name (default:
5
"devnet")
6
-k, --keypair <path> Solana wallet location (default:
7
"--keypair not provided")
8
-n, --name <string> token name
9
-s, --symbol <string> token symbol
10
-d, --dec <number> token decimals (default: "9")
11
--supply <number> initial supply (integer value)
12
-h, --help display help for command
Copied!
1
// token
2
3
import { Keypair, Connection, clusterApiUrl } from 'solana/web3js`;
4
import { createToken, getMetadata } from 'rly-js';
5
6
const initialSupply = new BN(1_000_000);
7
const name = "TestToken";
8
const symbol = "TKNSYMBL";
9
const decimals = 9
10
11
const walletKeyPair = Keypair.generate();
12
const connection = new Connection(clusterApiUrl("devnet"))
13
const wallet = new NodeWallet(walletKeyPair)
14
15
//create token
16
17
const { tx, tokenMint } = await createToken({
18
initialSupply,
19
tokenData: { name, symbol, decimals },
20
connection,
21
wallet
22
})
23
24
// fetch metadata
25
26
const metadata await getMetadata({ tokenMint: tokenMint.publicKey, connection })
Copied!
After the initial mint, it's possible to mint additional tokens at a later time depending on your configuration.
The initial token supply will be minted to the associated token account for the keypair creating the token.

Step 1.2: Add your token to the SPL Token Registry (Optional)

This step will allow you to display your token name, symbol, and logo automatically across explorers, wallets, exchanges, and other applications built on Solana.

That's it!

In this section you should have:
  1. 1.
    Created your on-chain SPL app token
  2. 2.
    Minted an initial token supply to the associated token account
  3. 3.
    Verified your token and supply on chain
  4. 4.
    Added your token to the official Solana SPL token-list (Recommended)
  5. 5.
    Verified your token name, symbol, and logo on an explorer/wallet

Additional Resources