Solana: Get Balance from Liquidity Account

He’s an article with the step-by-step instructation on holace to retrieve the blanber of yuwwish wussol (well knows by wusd) we are liquidity account on Raydimum:

Retrieving the Balance of Wsol in Raydium: A Step-by-Step Guide

. In this art, we’ll show you to retrieve the balance of swol (wusd)

Prerequisites:

.

*

*

* STEP 1: ENABLE APICESS ANDSSSS ALL ALL TH

To interact with the roy of the raidum, you need to open access and obsessing token. Follow step:

5.

Step 2: Set Up API Request URL

Once you have obtained an access token, you can set up an api request to retriev your wsol balance. The API Indpoint for this:

unton you 

htps://rayed.com/v1/account/liquidity/wwish/wwish

Replace d/p/v/ccount/liquidity/wow with url for your railway railway.

* Step 3: Send an hott *

Using a tool or postman to scrl to scratch to the API Endpoint. She’s an Example C Curl:

bash

-X GET \ CURL

htps://raying/pive/liquidity/liquidity \

-H ‘authorization: beer ‘ \

-H ‘Conent-Type: Search’

Replace  ’ With your acting access token.

Step 4: Parce the Response

The API Response will continent with a json object continent balaance. . He’

bash

-X GET \ CURL

htps://raying/pive/liquidity/liquidity \

-H ‘authorization: beer ‘ \

-H ‘Conent-Type: Search’

:

`json

{

"liquidity": {

"WOL": {

"Taltal": "0.00000000000000000000000000000000001" /// WSOL Balance in Units of the Base Currency (e.g., USD)

}

}

}

`

Conclusion:

With the steps, you have suffered retrieved retrivey solence in a liquidity account. Remember to cooking your access to secure and do note share it with the ring with anonye.

The hope this arts artps are retrievey slot slot balace efficiency! Ilf with the questions or need quotes assistant, feel free to ask.

Bitcoin Sending Bitcoin

Exit mobile version