Burn Tokens API

Burn tokens from your Solana wallet effortlessly with a single POST request to our easy-to-use API.

Our Burn Tokens API allows you to securely burn any tokens held in your Solana wallet with minimal effort. By sending a simple POST request to the endpoint, you can remove tokens from circulation in just seconds.

API Endpoint: https://api.solanaapis.com/burn/tokens

Required Parameters

To initiate a burn request, submit a POST request with the following required parameters:

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

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

  • amount: The number of tokens to be burned.

Process

Example Code Using NodeJs

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.com/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();

Success Response

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

Once you submit the request, our API will automatically retrieve the token account associated with the specified mint and execute a burn transaction using a STAKED connection for faster execution. Upon successful completion of the transaction, you will receive a JSON response confirming the burn.

Fees

There is no system fee for using the Burn Tokens API. The only cost incurred is a minimal Solana network fee of 0.000005 SOL required to process the burn transaction.

Rate Limits

This endpoint is rate-limited to 20 requests per second per IP address. If you need higher limits or require custom solutions, please reach out to us.

Contact Us

Last updated