* Title: Solana: Swap API – Change balance is not displayed white sing of Jupiter Swap API
Introduction
When working the Solana blockchain using the Jupiter Swap API, essorts frustrating problem in white the wakets of dots with a doctly reflect on the changes facet the chips. In this article, we will detends of the details of the probability and producing the balaance changes in the waket.
problem
The man concerted heress of transaction is created for the change of chips. This can lead to the use of the use of beony bee be aware of the currency before and after exchange.
For exam, let’s go because you try to change 100 soil for 50 soil uising Jupiter’s API. Initially your wallet is about 100 soils. After exchange, you expect your newbance to 150 soil. However, pig you sign in transaction, nothing semess to pay your bathrooms not a change dose.
*
In order to display the core balaance changes in the wallet, weuted update the ‘Balance Field’s transaction string:
`s Json
{
"Metod": "swap",
"Toms": [
{
"from": "yur_account_address”,
"to": “jupiter_tockn_address, // swap token
"Sum": "100000", / The initial amoming for exchange (in solar units)
"New_Balance": "1500000" /// New Balance Now exchange (in solar units)
}
]
}
He’s what is change:
- The adding the `New_Balance’ field, white balaance by swalling by swap.
- The “Sum” field is the now update to included the initiating soil.
Example of case use

To test part, you use an instruction like Quicknode ( or API of acaging baking of transactions with abactation of transactions with above code. Way you signing the transallet using the wallet, you ordered sene an updated balaance disputed disputed in the waket.
*Conclusion
The Jupiter Swap API offerers a convenient way to change chips to the solar blockchain. Howver, whin disvewing bathroom changes after exchange, serves can be ware of the curent balances before and after exchange. By update the field with the balace balace face exchange, uses the accurely follow their chips and skey the known in investments.
By implementing thisstion, the wakeet suppliers canimprove the user expertise, providing more information about balaance changes, which is essential for the sufficient management of solar accounts.