0

I have written and published a contract on the ropsten test network using remix. Now I want to access the functions of the smart contract from my command line (My PC) and not the remix IDE. Is there a way to do this?

Note: I have my contract address.

3
  • Yes, install NodeJS, run npm install web3, write a script and run it from command line using node. Commented Sep 30, 2019 at 7:35
  • @goodvibration Yes but, how do I access my contract functions from the cmd?
    – vteja711
    Commented Sep 30, 2019 at 7:43
  • 1
    You call those functions from your script. It's actually better than Remix, because you can automate whatever it is that you want to do (instead of doing it manually, one function at a time). Commented Sep 30, 2019 at 8:37

1 Answer 1

1

Please check this Truffle console

It allows call functions of smart contracts directly from your console.

3
  • 1
    Please post the relevant parts from that link here. Answers consisting only of links are not particularly helpful and are liable to be deleted.
    – Chenmunka
    Commented Oct 1, 2019 at 17:18
  • @Chenmunka I provided link to the documentation of truffle console functionality. It allows do thing asked in this question. I can actually copy/past documentation, but I don't think it will be really useful. Anyone who wants to find a way to access smart contract from cmd can use link I posted above, thanks. Commented Oct 2, 2019 at 7:52
  • I used the web3js solution with truffle framework! So thanks!!
    – vteja711
    Commented Nov 6, 2019 at 9:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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