Skip to main content
CRYPTOCURRENCY

Solana: Get Balance from Liquidity Account

By February 13, 2025No Comments

Here is an article with detailed instructions on how to transfer your Wsol (also known as WUSD) balance to your Raydium liquidity account:

Getting Wsol Balance in Raydium: Step by Step Guide

Being new to programming, you may not be familiar with the various platforms and tools available for cryptocurrency trading. In this article, we will show you how to transfer your Wsol (WUSD) balance to your Raydium liquidity account.

Prerequisites:

  • You have already filled your Raydium wallet with fiat currency.

  • You have connected your Raydium wallet to a trusted exchange or platform such as Binance or Uniswap.

  • You have received an API access token for your Raydium account.

Step 1: Enable API access and get an access token

To interact with the Raydium API, you need to enable access to the API and receive an access token. Follow these steps:

  • Log into your Raydium control panel.

  • Click Settings (gear icon) > API Keys.

  • Click “Generate New API Key”.

  • Enter the name of your API key and click Create.

  • Select the API endpoint you want to use (eg /api/v1/account) and click Generate Access Token.

Step 2: Set API Request URL

After receiving the access token, you can make an API request to find out your Wsol balance. The API endpoint for this is:

Replace /api/v1/account/liquidity/wsol with your actual Raydium account URL.

Step 3: Send HTTP Request

Use a tool like cURL or Postman to send an HTTP request to the API endpoint. Here is an example of using c CURL:

curl -X GET \

\

-H 'Authorization: Bearer ' \

-H 'Content-Type: application/json'

Replace “” with the actual access token.

Step 4: Analyze the response

The API response will contain a JSON object containing your Wsol balance. You can parse this response with cURL or another tool of your choice. Here is an example:

curl -X GET \

\

-H 'Authorization: Bearer ' \

-H 'Content-Type: application/json'

The answer will be in JSON format, for example:

{

"liquidity": {

"wsol": {

"total": "0.0000000000000000000001" // Wsol balance in base currency units (eg USD)

}

}

}

Conclusion:

After following these steps, you have successfully received your Wsol balance in your Raydium liquidity account. Remember to keep your access token safe and do not share it with anyone.

I hope this article will help you effectively replenish your Wsol balance! If you have any questions or need additional help, do not hesitate to contact us.

ethereum incorrect timestamp kline

Leave a Reply