GGCCCC / airdrop_multi_claim

MIT License
99 stars 74 forks source link

I want to ask a question!!!! #1

Open LokMon opened 2 years ago

LokMon commented 2 years ago

What is the estimated gas fee for 100 times on the mainnet?

GGCCCC commented 2 years ago

What is the estimated gas fee for 100 times on the mainnet?

I did it on the testnet just now: https://goerli.etherscan.io/tx/0x4d6104f265348f9a160d1204f1fd9dd07c061a063bf562b5565991bc0851bbf8 it costs 9690299 gas. As for mainnet, you can use “cost = gas*gasPrice” to calculate or look up to this address as a reference: 0x7191a185b43e4d55c53cec0f32670e3b2590bfbd

LokMon commented 2 years ago

Do I need to set the gaslimit manually?

GGCCCC commented 2 years ago

Do I need to set the gaslimit manually?

you can set it mannally or use estimateGas rpc endpoint.