aeternity / aescan

Block Explorer and Analytics Platform
ISC License
6 stars 3 forks source link

Show minimum gas price in recent blocks and utilization #689

Open davidyuk opened 5 months ago

davidyuk commented 5 months ago

In https://github.com/aeternity/aeternity/pull/4277 we introduced the endpoint exposing the stats about recent blocks. Example:

// http://localhost:3013/v3/recent-gas-prices

[
  {
    "min_gas_price": 1061520151,
    "minutes": 1,
    "utilization": 74
  },
  {
    "min_gas_price": 1020100000,
    "minutes": 5,
    "utilization": 74
  },
  {
    "min_gas_price": 1000000000,
    "minutes": 15,
    "utilization": 66
  },
  {
    "min_gas_price": 1000000000,
    "minutes": 60,
    "utilization": 66
  }
]

Aescan can show this data to illustrate the current/recent blockchain load and fee increase. Gas price can be shown in percent of the minimum gas price (1e9), like "current gas price is 106.1% of minimum".

janmichek commented 5 months ago

@davidyuk Where is this hosted? I can see the localhost address. This does not work https://mainnet.aeternity.io/v3/recent-gas-prices

davidyuk commented 5 months ago

As I understand, this feature would be released in aeternity@6.13.0 and after that it will be deployed to mainnet.aeternity.io. Meanwhile you can try

aeternity/aeternity:master-bundle@sha256:54eefa1204b631dd477e3928b50e4449750a7c0e06b53eda4cf1493835b08caa

image, but basically this issue is blocked till the node release, I'm notifying you in advance 🙂

davidyuk commented 4 months ago

The new node released and deployed, so the above url works