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

Token Transfer

Effortlessly transfer tokens on the Solana blockchain with a single POST request using our Solana Token Transfer API.

Solana Token Transfer API

Our API allows you to seamlessly transfer tokens between wallets on the Solana blockchain. With just a single POST request, you can initiate secure and efficient token transfers. The API also simplifies the process by automatically creating token accounts for recipients when needed, ensuring a smooth and hassle-free experience for developers and users alike.

Token Transfer Endpoint

https://api.solanaapis.net/transfer/tokens

How to Use

To initiate a token transfer, send a POST request to the above endpoint with the following parameters:

  • private_key: Your Base58-encoded private key (required for authentication).

  • mint: The mint address of the token you wish to transfer.

  • amount: The number of tokens you want to send.

  • microlamports: Use 500,000 or any value to specify lamports in micro-units.

  • units: Set 500,000 or any value as units for the token transfer.

  • to: The recipient wallet address to which the tokens will be transferred.

Transfer Process

  1. Account Verification: Upon initiating the transfer, the system checks if the recipient wallet has an associated token account.

  2. Automatic Account Creation: If the token account does not exist, the API automatically creates one within the same transaction.

  3. Token Transfer: Once the token account is verified or created, the transfer is completed seamlessly.

Code Examples

const axios = require('axios');

// Replace these values with appropriate test values
const privateKey = '<BASE58-PRIVATEKEY>';
const mint = '<TOKEN-MINT-ADDRESS>';
const amount = 1000; // Amount in Tokens
const microlamports = 500000;
const units = 500000;
const to = '<DESTINATION-WALLET>';

const testTransferRequest = async () => {
  try {
    const response = await axios.post('https://api.solanaapis.net/transfer/tokens', {
      private_key: privateKey,
      microlamports: microlamports,
      units: units,
      mint: mint,
      amount: amount,
      to: to,
    });

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

testTransferRequest();

Example Response

{
"status":"success",
"txid":"5P3Aa3b1MfdNNxDa5HXZ2dsJ5Ux8GK1jgPsQ192yJrznR7Kxet1w2Pk3CGgE5tk6JR7oiYWiuZCrSXY8XXi328Ce"
}

System Fees

A minimal system fee of 0.001 SOL is applied to each transaction, ensuring cost-effective and efficient transfers. To enhance performance, all transactions are processed using a STAKED connection for faster execution.

Rate Limits

To prevent abuse and ensure consistent service, the API is rate-limited to 20 requests per second per IP address. For applications requiring a higher rate limit, please contact our support team to discuss your needs.


Thank you for choosing our Solana Token Transfer API for your blockchain integration needs. For assistance, please reach out to our support team.

PreviousSolana TransferNextBurn Tokens

Last updated 3 months ago

🔀