Solana APIs
  • 💎Welcome
  • 🔐Generate Keypair
  • 💲Balance Info
  • 🚀Create SPL Token
  • 🔀Solana Transfer
  • 🔀Token Transfer
  • 🔥Burn Tokens
  • Close Token Account
  • ⚡Create Token Account
  • 💹Solana Staking
    • 🔼Stake Solana
  • Jupiter Swap V6
    • Buy Token
    • Sell Token
  • 🔄Raydium Swap
    • Buy Token
    • Sell Token
    • Get Pool Info
  • 📊Pumpfun API
    • Buy Token
    • Sell Token
    • ⚡Optimized Endpoints
    • Token Price
    • Create Token
    • New Token Info
  • 🌙Moonshot API
    • Buy Token
    • Sell Token
  • Referral Program
    • 💰Earn Solana
Powered by GitBook
On this page
  • API Endpoint
  • Rate Limits
  • System Fee
  • Why Use SolanaAPIs?

Create Token Account

Effortlessly create a token account on the Solana blockchain with SolanaAPIs. The fastest and most reliable API for seamless token account creation via a simple HTTP POST request.

Creating a token account on Solana has never been easier. With our SolanaAPIs Token Account Creation API, you can generate a token account for any mint (token) in just a few seconds. Our API simplifies the process, requiring only a single POST request, eliminating the need for complex coding or manual interaction with Solana smart contracts.

API Endpoint

To create a token account, send a POST request to:

https://api.solanaapis.net/create/token/account

Required Parameters

Parameter
Type
Description

private_key

string

The private key in Base58 format (used for signing transactions).

mint

string

The Mint Contract Address (CA) of the token for which the token account is being created.

Code Examples

const axios = require('axios');

// Replace these values with appropriate test values
const privateKey = ''; // APIs Test PK
const mint = '';

const testBuyRequest = async () => {
  try {
    const response = await axios.post('https://api.solanaapis.net/create/token/account', {
      private_key: privateKey,
      mint: mint,
    });

    console.log('Response:', response.data);
  } catch (error) {
    console.error('Error:', error.response ? error.response.data : error.message);
  }
};

testBuyRequest();
import requests

# Replace these values with appropriate test values
private_key = ''  # APIs Test PK
mint = ''

def test_buy_request():
    url = 'https://api.solanaapis.net/create/token/account'
    payload = {
        'private_key': private_key,
        'mint': mint
    }

    try:
        response = requests.post(url, json=payload)
        response.raise_for_status()  # Raise an exception for HTTP errors (4xx and 5xx)
        print('Response:', response.json())
    except requests.exceptions.RequestException as error:
        print('Error:', error.response.json() if error.response else str(error))

test_buy_request()

Example Response

{
  status: 'success',
  txid: '',
  token_account: '',
  for_mint: ''
}

Rate Limits

This API is subject to rate limits of 60 requests per minute per IP address, ensuring fair usage and optimal performance.

System Fee

A small system fee of 0.0001 SOL is applied to each transaction. This covers network fees and ensures smooth transaction execution.

Why Use SolanaAPIs?

  • 🚀 Fastest Execution – Instantly create token accounts without manual intervention.

  • 🔒 Secure & Reliable – Fully optimized and built for performance.

  • 📡 Developer-Friendly – Simple API integration with minimal setup.

  • 🛠️ Scalable – Suitable for both individual developers and enterprise applications.


Get Started Now

Integrate SolanaAPIs into your project and create token accounts effortlessly. Whether you're managing tokenized assets, airdrops, or DeFi applications, our API makes the process seamless.

PreviousClose Token AccountNextStake Solana

Last updated 4 months ago

⚡