2

I am using geth for running my blockchain node. I wrote my contract in the console itself and it got deployed and mined perfectly. I could invoke the functions of the contract in the terminal. I want to know in which directory on my computer would such a file be saved or where to create a .sol file to deploy contracts to my private blockchain ?

2

When you deploy a contract it's saved as EVM bytecode in blockchain. Unless you yourself separately save .sol and ABI .json files on your computer they are not stored.

It really doesn't matter in which directory you save the file. You can copy-paste the relevant source code into geth console.

  • Can I link the .sol file to the console directly on startup? so that I do not have to write it again in the console. Like when using truffle we have all .sol files saved in one directory – anonymous Mar 27 '17 at 10:11

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.