0

Is there a way to check the balance of another contract from a contract without the use of a public variable? (ie. this.balance)

3

You can check the balance of any account in Solidity:

address(0x123abc...).balance

See http://solidity.readthedocs.io/en/develop/units-and-global-variables.html#address-related.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.