1

I wrote my contract in browser remix ide.It's deployed and I can transfer my tokens with online wallet.
Now how can I call contract's functions?I know I can do it with remix ide but this unconvinient because if I reload the page everything resets and I have to deploy new contract.

  • What wallet are you using? Do you have the contract address? – Olivier Rikken Sep 20 '17 at 12:21
  • @Olivier Rikken I'm using online wallet https://wallet.ethereum.org with metamask chrome extension.My contract address is 0xb8666e88ff50379e8cbd105c82669dfaee2f2c9d.This contract is in Ropsten test network – undefined Sep 20 '17 at 12:31
1

Metamask is an extension that injects web3js into the browser and allows you to interact with your deployed contract. Similarly, you can implement your own custom application that connects to the Ropsten test network, with libraries like web3js or web3j. Web3j provides a very easy to use API, by auto-generating Java classes from your smart contract. Using the generated Java class you can load your already deployed contract based on its address, and then call any method you want whenever you want it. See:https://docs.web3j.io/smart_contracts.html

-1

You can use "truffle console --network ropsten" to enter truffle console mode then you can use all truffle contract schema commands

  • Please, can you explain more what this command does. It's a nice answer but more details should be provided for other users when they find this answer. – Nicolas Massart Feb 25 '18 at 17:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.