How to get ethereum contract public variables

0 votes

I want to get bool paused; in my react application without transaction. It is implemented in myetherwallet.com contract gui. How can i do this? If possible i want to do this with mappings too.

Oct 17, 2018 in Blockchain by sabby
• 4,370 points
415 views

1 answer to this question.

0 votes

You need to use call method, it is evaluated directly on local node without sending transaction to the blockchain.

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

answered Oct 17, 2018 by Christine
• 15,830 points

Related Questions In Blockchain

0 votes
2 answers

How to get notified when an event triggers on ethereum smart contract?

Muchas gracias. ?Como puedo iniciar sesion? READ MORE

answered May 2, 2020 in Blockchain by aqowcmbevs
1,249 views
+1 vote
2 answers

How to get airdropped tokens to Ethereum wallet?

You also can use Frewallet This wallet is ...READ MORE

answered Dec 20, 2019 in Blockchain by anonymous
• 160 points
194 views
0 votes
1 answer

How to get the current state of a smart contract?

Hey, you gotta provide the contract code, and ...READ MORE

answered Aug 1, 2018 in Blockchain by Perry
• 17,100 points
318 views
0 votes
1 answer

How to get return value from solidity contract?

Once you call a constant function, you ...READ MORE

answered Aug 16, 2018 in Blockchain by slayer
• 29,310 points
2,781 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,830 points
691 views
0 votes
1 answer
0 votes
1 answer

Nodejs Express: Getting different output in console.log and callback

If your getOrderStatus() function is like this: function getOrderStatus(_orderId, callback) ...READ MORE

answered Oct 9, 2018 in Blockchain by Omkar
• 69,170 points
114 views
0 votes
1 answer

Solidity geth: Error encountered during contract execution [Bad instruction]

recipes is a dynamic storage array. You need ...READ MORE

answered Oct 15, 2018 in Blockchain by Omkar
• 69,170 points
577 views
0 votes
1 answer

How to detect if an ethereum address is an ERC20 token contract?

There are many possible ways to achieve ...READ MORE

answered Sep 25, 2018 in Blockchain by Christine
• 15,830 points
3,878 views
0 votes
1 answer

How to make sure transactions take no fee in a private Ethereum blockchain?

In a private ethereum network you have ...READ MORE

answered Mar 26, 2018 in Blockchain by Christine
• 15,830 points

edited Mar 26, 2018 by Christine 746 views