Does the TEAL balance opcode include pending rewards?

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.

The balance opcode includes pending rewards.

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

1 Like