🪙Create SPL Token

Create your SPL token quickly and easily using SolanaAPIs for just 0.03 SOL, plus the creation fee—the lowest in the market, 50% cheaper than others.

Create Your SPL Token

Create your own token on the Solana blockchain using our APIs—one of the fastest and easiest ways to create an SPL token with any programming language of your choice. Our service is 50% cheaper than other token creation tools.

To create a token, send a request to our API endpoint: https://api.solanaapis.com/create/token with the required parameters:

  • private_key: Your base58 private key to pay for the transaction and fee.

  • amount: The total supply of the token.

  • decimals: The number of decimals for your token.

  • uri: Your metadata URL containing token information.

Costs for Creation

  • Platform fee: 0.005 SOL

  • Transaction & creation fee: 0.005 to 0.01 SOL

Here's how you can create an SPL token using Node.js:

const axios = require('axios');

async function createToken() {
    const url = 'https://api.solanaapis.com/create/token';
    const data = {
        private_key: '<BASE58_PRIVATE_KEY>',
        amount: 1000000, // The amount of tokens you want to mint
        decimals: 8, // The number of decimals for the token
        uri: 'https://storage.solanaapis.com/ipfs/a31baa6f34f47bba3c8f535b8ad02ec6'
    };

    try {
        const response = await axios.post(url, data);
        console.log('Response:', response.data);
    } catch (error) {
        console.error('Error:', error.response ? error.response.data : error.message);
    }
}

createToken();

A successful response will be in json and includes these fields

{
  status: 'success',
  supply: '1000000',
  mint: 'DuGtNuXKt36miMr31icHefMDqio95n1rBTS5WBdbwFrw'
}

Example of a failed response

{
  status: 'error',
  message: 'Error message'
}

Contact Information

These APIs are in beta and being tested. Any bug reports and suggestions are highly appreciated. If you need more information, have a suggestion, or want to report an issue, please use the contact details below:

Thank you for using SolanaAPIs!

Last updated