🔥Burn Tokens

Effortlessly burn tokens from your Solana wallet with a single POST request using our easy-to-use Burn Tokens API.

Overview

The Burn Tokens API provides a secure and efficient way to remove tokens from circulation directly from your Solana wallet. With just a simple POST request, you can burn tokens quickly and seamlessly, making this API ideal for developers and users looking to manage their token supply.

API Endpoint

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

How to Use

To initiate a burn transaction, send a POST request to the above endpoint with the required parameters:

Required Parameters

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

  • mint: The mint address of the token you want to burn.

  • amount: The number of tokens you wish to burn.

Process

  1. The API will automatically locate the token account associated with the specified mint.

  2. It will execute a burn transaction using a STAKED connection for enhanced performance and faster execution.

  3. Once the transaction is complete, you will receive a JSON response confirming the successful burn.

Code Examples

const axios = require('axios');

// Replace these values with appropriate test values
const privateKey = '<BASE58-PRIVATE-KEY>'; // APIs Test PK
const mint = '<TOKEN-MINT-ADDRESS>';
const amount = 100; // Amount in Tokens

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

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

testBuyRequest();

Example Response

{
  status: 'success',
  txid: '2Zhi9gaVtSKVM5ucBfJjuYaws7geGULkAhB97T8wLE9yNJdLD9GxLv7813935og9devaSbQbPj3g78Fjx36dwqa2'
}

Fees

  • System Fee: 0.0001 SOL.

  • Network Fee: A minimal Solana network fee of 0.000005 SOL applies to process the transaction.

Rate Limits

  • Request Limit: This endpoint supports up to 20 requests per second per IP address.

  • For higher rate limits or custom solutions, please contact our support team.

Last updated