broxus / everscale-inpage-provider

Web3-like interface to the Everscale blockchain.
https://broxus.github.io/everscale-inpage-provider/
GNU General Public License v3.0
30 stars 17 forks source link

Add `getNetworkTime` method #3

Open Rexagon opened 2 years ago

Rexagon commented 2 years ago

This method should return the maximum known block time.

Reference query:

query {
  blocks(
    orderBy: [{ path: "gen_utime", direction: DESC }],
    limit: 1
  ) {
    gen_utime
  }
}