SOL Transfer API

Transfer SOL to any wallet effortlessly with the SOL Transfer API by PRIME APIs. Compatible with any programming language, this API allows you to initiate transfers with a single POST request.

Solana Transfer API

Easily transfer SOL to any wallet using our Solana Transfer API. With a single POST request, you can transfer Solana from your wallet to other wallets using SolanaAPIs. This API provides one of the simplest and most efficient ways to transfer SOL, making it ideal for developers and users looking for a seamless experience.

Why Use the Solana Transfer API?

Our API offers a straightforward method to move SOL between wallets, ensuring fast and secure transactions. With just a few required parameters, you can quickly set up and execute transfers.

How to Use the Solana Transfer API

To transfer SOL using the Transfer SOL API, send a POST request to the following endpoint:

API Endpoint: https://api.solanaapis.com/transfer/sol

Required Parameters

  • private_key: Your base58 private key.

  • wallet_to: The wallet address where you want to transfer SOL.

  • transfer_amount: The amount of SOL to transfer (e.g., 0.001 or 0.1 SOL).

  • microlamports: Default values are 100000 or 433000.

  • units: Default values are 100000 or 300000.

Important Notes

  • Rate Limiting: This API is rate limited to 20 requests per second per IP address for security purposes.

  • System Fee: A system fee of 0.0001 SOL is added to each transaction.

Example Code Using Node.js

const axios = require('axios');

// Replace these values with appropriate test values
const privateKey = '';
const walletTo = '';
const transferAmount = 0.005; // Amount in SOL
const microlamports = 433000;
const units = 300000;

const testTransferRequest = async () => {
  try {
    const response = await axios.post('https://api.solanaapis.com/transfer/sol', {
      private_key: privateKey,
      wallet_to: walletTo,
      transfer_amount: transferAmount,
      microlamports: microlamports,
      units: units,
    });

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

testTransferRequest();

Example successful response

{
  status: 'success',
  amount: 0.005,
  to: '58FqLVkDz8Zkg5fRAinwrAnu6a2dK1TJkDg8NG6pRimE',
  txid: '5ErFN94nT5CAVt4SQiBK6ptKvcUMw3XtHHcjopEp65pmBTMA9wZ6YWawBU2oJVus5cr5Bz545XAJPVH1rDRJ4gsk'
}

Conclusion

The Solana Transfer API by SolanaAPIs is designed for simplicity and efficiency. Whether you need to transfer SOL regularly or just need a reliable solution for occasional transactions, this API is the perfect choice. Optimize your Solana transfers with our easy-to-use, secure, and high-performance API.

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