this is my contract deploy cost of locally. how much $ want to deploy this in main network
> gas price: 20 gwei > Saving migration to chain. > Saving artifacts ------------------------------------- > Total cost: 0.6712316 ETH
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
Your question indicates:
This implies that the amount of gas required is 67123160000000000 / 20000000000 = 3356158.
This amount of gas should be identical on every network (assuming that you're using the same compiler in order to generate the byte-code which you are deploying).
So the only difference which could impact the total cost (between your local network and the main network) is the gas price that you use.
For example, you can use 2 gwei instead of 20 gwei, and the total cost will decrease by a factor of 10 (i.e., will be 10% of 0.6712316 ETH).
The gas price that you use typically determines how fast your transaction is likely to execute (the higher the gas price is, the faster the transaction is likely to execute).
This is of course a matter of supply and demand, hence it constantly changes; you can check the webpage ETH Gas Station before sending your transaction to mainnet, in order to decide what gas price you want to use.