Hello fellow developers. I’m doing some polishing on Colony and realized I’m missing a big piece of the puzzle when doing uploads. The API gives you a way to get the cost in ANT for an upload, but what about the gas? I’ve looked around and I don’t see a way to get this. Maybe I need to dig deeper into the libs themselves? Has somebody else figured this out?
Edit: Even if the Autonomi libs don’t do it, is there some kind of basic calculation I can do, like number of chunks X gas per chunk where gas per chunk is based on the current market rate? I don’t think it has to be super accurate, +/- 10% would be ideal I think, if that’s possible.
Thanks @neo. I’ll poke around there. I thought for sure somebody else would have something clever I could steal… er.. use It just seems like something that should be in the core libs, especially while gas is 99%+ of the cost to upload anything. I may have to file an enhancement request ticket for this one.
I think I observed same operations costing different amounts of gas on arbitrum… Not sure it’s an easy/obvious task…(I think it has to do with L1 & L2 gas and arbitrum balancing something …)
Thanks @riddim. That makes sense. I’ll probably just drop the upload cost calculation until there is some more clarity. Maybe this gets better when we get the paymaster stuff in place.