# Does the TEAL balance opcode include pending rewards?

**URL:** <https://forum.algorand.co/t/does-the-teal-balance-opcode-include-pending-rewards/5995>\
**Category:** General\
**Tags:** teal, smart-contracts\
**Created:** [February 9, 2022, 9:38am UTC](https://forum.algorand.co/t/does-the-teal-balance-opcode-include-pending-rewards/5995 "2022-02-09T09:38:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hungpq](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hungpq](https://forum.algorand.co/u/hungpq)\
**Post date:** [February 9, 2022, 9:38am UTC](https://forum.algorand.co/t/does-the-teal-balance-opcode-include-pending-rewards/5995/1 "2022-02-09T09:38:00Z")

</div>

Hi, i have a question relate Algo reward.  
what i know is holding Algo can get Algo reward automatically. so this lead to some special handle in the smart contract level. what i want to ask here is where the method `Balance(address)` or `balance opcode` in pyteal and teal return the pending reward also or we have to do txn, then the account will be update?  
i see in the account api, they return 2 value: **amount** and **amount-without-pending-rewards** which more clear for me.

---

<div class="post-metadata">

**Author:** ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forum.algorand.co/u/fabrice)\
**Post date:** [February 9, 2022, 7:48pm UTC](https://forum.algorand.co/t/does-the-teal-balance-opcode-include-pending-rewards/5995/2 "2022-02-09T19:48:22Z")

</div>

The `balance` opcode includes pending rewards.

The only place that matters where pending rewards are not included is for compounding:

> **[How Algorand Rewards Distribution Works | PureStake](https://www.purestake.com/blog/algorand-rewards-distribution-explained/)**
>
> Demystifying Algorand Rewards Distribution: A Look at How & When Algorand Token Rewards Are Calculated
