The following link discusses about deploying of smart contract
[How To: Deploy Smart Contracts Onto The Ethereum Blockchain1
But it does not say how much it would cost to upload the contract on the main Ethereum network. I also read this text:
“To deploy a smart contract on Ethereum, you send a transaction to address 0 that contains EVM bytecode in its data field. This code, when executed, should return the contract’s code (so, there’s a level of indirection, you don’t directly attach the contract code itself, you attach code that will return the contract code).”
The link is:
It says : “This code, when executed,” I have following questions and some vague answers which I want to clarify:
- How we send the code to the main Ethereum network? (Ans.)Using geth node?
- Does geth ask for the gas cost & how do we send the gas cost? Please reply me.
- How we send the first transaction to address 0?
We use some other contract to create an instance of our contract. Is this right? But what if we don’t have access to any other contract? What is the role of EVM in this case?
- Once the mining ends, does the contract automatically gets stored on the blockchain by EVM or the miner has to execute some command?