So Iām cruising along building my DEX with Moralis on Polygon and half the time the 1Inch trades justā¦choke. So I do some digging and everythingās fine on my side and on Moralisā side. But thereās something called a ādemand shockā going on on-chain. Huge NFT minting or whatnot. Gas prices are 5x to 10x normal for hours.
How do I detect that? Iād like to warn my users about the āweatherā and not get complaints about how āyour software sucks!ā when really itās the global network conditions.
I see the server code demo about averaging gas prices as experienced by the dAppās users. But Iām looking for the real, all-network say 48 hour average vs. last block Tx gas fees. Seems like a job for the indexed or speedy node?