Is there a way to check the balance of another contract from a contract without the use of a public variable? (ie. this.balance)
-
From where? web3js? From an other contract? Give mo details please. – Florian Castelain Jan 11 '18 at 9:13
-
Edited the question. (from another contract) – arete Jan 11 '18 at 9:17
-
solidity.readthedocs.io/en/develop/… address.balance isn't that enough? – Florian Castelain Jan 11 '18 at 9:20
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.