Accessing non-public (private) variables

dave123124dave123124 Member Posts: 11
edited May 2016 in Smart Contracts and Dapps
When using the javascript console/web3, I know that you can access variables which are declared as public from a contract, by just doing contract.variableName()

But is it possible to access variables that have not between declared as public?

For examples theDAO contract has a "balances" variable which maps all token balances to addresses, how can I retrieve this balances variable in without having to use the balanceOf() function to retrieve individual balances.


Sign In or Register to comment.