The queried balance is different from the actual balance

https://algoexplorer.io/address/2UYEIA3LBLH7ZTMHY6BIHIYTQKBKRCAY5UJSLU2HVPPYQ6ZWGAYY3M5ZBY

The balance and rewards for this address are 517.264752 Algos and 37.70621 Algos
Why did the last tx save 512.904048 Algos and 33.345506 Algos

Hi,

The balance on algoexplorer.io includes all the pending rewards that have been accrued since the last transaction https://algoexplorer.io/tx/VMSPLZP2CCY2CN3VBGXDU6G6KVGJIIA63AUHELQ3XCSNEBIYNOCA
The difference between the sender balance indicated in the above transaction (512.904048 Algos) and the current balance (517.264752 Algos at the date of your post) corresponds to these pending rewards.

The rewards amount on https://algoexplorer.io/address/2UYEIA3LBLH7ZTMHY6BIHIYTQKBKRCAY5UJSLU2HVPPYQ6ZWGAYY3M5ZBY (37.70621 Algos at the date of your post) is the total amount of rewards (including pending rewards) that the account has earned over time (from its creation).

For technical details on how rewards work, see https://www.algorand.com/resources/blog/rewards-technical-overview

https://api.algoexplorer.io/v1/account/2UYEIA3LBLH7ZTMHY6BIHIYTQKBKRCAY5UJSLU2HVPPYQ6ZWGAYY3M5ZBY
The API no longer returns’ pending rewards’
How do I get it