I have a few questions regarding the deploy to the main net. They are mostly about the cost of it. Im using
ether.js for deployment. The contract itself is written in
Could you please provide me with the exact pricing for deploying the smart contract? I found out that its basic fee of 21k gas + 32k of some contract creation fee. Then theres the price for kbs of the contract. But the kbs are what Im not so sure of. On every site they state a different price for kb of compiled bytecode of my contract. Could you please provide me with the gas price for kb in 2021?
Where can I found my compiled bytecode size – the size that determines the pricing? When I compile my code with hardhat it produces a bunch of
.jsonfiles in the
artifactsfolder. I am really struggling to understand which one is the compiled contract bytecode that will be stored on the blockchain and that I will pay for.
How can I set gas prices in
ether.js? In every tutorial or example that I saw, nobody sets gas prices manually in
ether.js, not even a gasLimit. Is
ether.jssetting these prices by itself? And are the prices that
ether.jssets good or are they unnecessary high? Or is there a way to set the gas price in the
Which amount of eth would you guess that my deployment to the main net will take? My contract is written in
Solidity, it uses the classic
ERC-721tokens. I put everything into just one
.solfile and it has 1.4k lines.