We are creating a cryptocurrency analytics website and I am currently trying to calculate the transaction confirmation time just like in the ETH gas tracker (https://etherscan.io/gastracker).
The API docs over here (https://docs.etherscan.io/api-endpoints/gas-tracker#get-estimation-of-confirmation-time) say that you should use this type of request indicating the current gasprice in WEI.
Let's imagine that the current high gasprice is 32 GWEI (29 base + 3 priority), which I must multiply by 1,000,000,000 to get the value in WEI and replace this value in the link above.
The response is in seconds and it's 45, but the thing is that I am not receiving any other types of responses apart from 45 and 3615 using this link irrespective of the &gasprice value.
Tried replacing it with a value as low as 2000000000 or as high as 120000000000. The results are either 45 seconds or 3615 seconds and neither are true to the current gas tracker values on the Etherscan page.
Am I doing something wrong? Etherscan says that "gasprice is the price paid per unit of gas, in wei", but am I understanding this calculation right? Thanks a lot!