Module Context.Contract

Returns the balance of a contract, by default the main balance. If the contract is implicit the frozen balances are available too: deposit, fees or rewards.

Calls /chains/<chain_id>/blocks/<block_id>/contracts/<contract_id>/full_balance.

If the contract is a delegate, also calls /chains/<chain_id>/blocks/<block_id>/delegates/<contract_pkh>/own_full_balance and checks that both RPCs return the same value.