2

I have been trying to execute my code on remix or ethereum wallet. But to deploy my smart contract, how can I execute the code without any gas and ether. I dont need it to be online. I just need to deploy for my project and it would be good if its offline and limit to local host to my computer.

1 Answer 1

3

Executing a smart contract (or even deploying it) costs gas (which is paid in ether), so there's no way to do what you are asking.

Now, you can setup testrpc to locally test your contracts. The test accounts will come with 100eth each.

Executing the contract will still cost gas/ether, but it is not real ether you are using in the test environment.

1
  • 1
    Also there are public testnet like ropsten, rinkeby or kovan, which have faucets that allows anyone to test contract in a public network.
    – Ismael
    Nov 4, 2017 at 2:32

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.