How to calculate the fee to publish basic erc1155 to eth mainnet?

Hi all,
i have a question,
how to calculate correctly the fee to deploy standard ( for example preset based )
erc1155 to eth mainnet?

1 Like

Maybe you can use this tool to have a try: https://github.com/cgewecke/eth-gas-reporter

1 Like

yes tried with it…
for a simple ( preset based ) 1155 it say 700$… you this it is a valid number?

1 Like

The fee amount is simply gasUsed * gasPrice , where gas price is typically specified in “gwei” (where 1 gwei = 10^-9 ETH)

2 Likes

Hi @Boardmain,

Welcome to the community :wave:

During current network congestion it will likely be higher.
I just tried deploying a simple ERC1155 (https://docs.openzeppelin.com/contracts/3.x/erc1155#constructing_an_erc1155_token_contract) and it was estimated to be $1185

You can also try deploying to a public testnet.

1 Like

Yes thank you, i did… i was only looking for a confirm :smiley:

1 Like

Hi @Boardmain,

I also suggest looking at: https://docs.openzeppelin.com/learn/preparing-for-mainnet