如何获取以太坊合约 public 变量?

How to get ethereum contract public variables?

我想在我的 React 应用程序中获得 bool paused; 而无需事务。它在 myetherwallet.com 合约 gui 中实现。我怎样才能做到这一点?如果可能的话,我也想用映射来做到这一点。

需要使用call方法,直接在本地节点计算,不向区块链发送交易。

https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call/770#770