标签: reactjs ethereum web3js web3 metamask
我想在没有交易的情况下在我的反应应用程序中获得bool paused;。它是在myetherwallet.com合同gui中实现的。我怎样才能做到这一点?如果可能的话,我也希望用映射来做到这一点。
bool paused;
答案 0 :(得分:1)
您需要使用call方法,它直接在本地节点上进行评估,而不会将事务发送到区块链。
https://ethereum.stackexchange.com/questions/765/what-is-the-difference-between-a-transaction-and-a-call/770#770