# How to solve estimateGas failed on Tomochain?

**URL:** https://forum.viction.xyz/t/how-to-solve-estimategas-failed-on-tomochain/297
**Category:** Technical Discussion
**Created:** [30 June 2020 01:54 UTC](https://forum.viction.xyz/t/how-to-solve-estimategas-failed-on-tomochain/297 "2020-06-30T01:54:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Prapat\_Polchan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.viction.xyz/prapat_polchan/32/153_2.png) [@Prapat\_Polchan](https://forum.viction.xyz/u/Prapat_Polchan)
#### Post date: [30 June 2020 01:54 UTC](https://forum.viction.xyz/t/how-to-solve-estimategas-failed-on-tomochain/297/1 "2020-06-30T01:54:05Z")

</div>

I bulk address array to smart contract this smart contract is transfer erc20 multiple times, but i don’t fix gas on transaction i use estimateGas and auto gas on ethers library is work sometime but not always

i guess blocktime on tomochain is instants time(2sec) is estimateGas fail because some block is close before calculate gas

how to solve or can manual fix gas from bytes code ?

---

<div class="post-metadata">

### Author: ![thanhson1085](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.viction.xyz/thanhson1085/32/28_2.png) [@thanhson1085](https://forum.viction.xyz/u/thanhson1085)
#### Post date: [1 July 2020 02:19 UTC](https://forum.viction.xyz/t/how-to-solve-estimategas-failed-on-tomochain/297/2 "2020-07-01T02:19:39Z")

</div>

You should fix gas for your tx at this time.  
For estimateGas, we will investigate it if we have more information or logs.
