My current method of deploying smart contracts in geth is by generating the bin and abi files of the corresponding sol and then loading the bin and abi files of the contract into geth using the commands:



But the issue I am facing with this is that every time I close geth and open it again, the contracts have to be re-deployed again as the existing contracts seem to be missing.

Is there anyway to ensure a permanent deployment of contracts? Or am I missing any critical step?


To deploy a contract, you have to send the contract deployment transaction. Using the javascript consol or any javascript script, check this: deploy contract with web3js

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.