Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to Check the latest blocks? #130

Open
geekmc opened this issue Jun 19, 2023 · 1 comment
Open

how to Check the latest blocks? #130

geekmc opened this issue Jun 19, 2023 · 1 comment

Comments

@geekmc
Copy link

geekmc commented Jun 19, 2023

{
blocks(first: 1, orderBy: number, orderDirection: desc) {
number
}
}

response:
{
"errors": [
{
"locations": [
{
"column": 3,
"line": 2
}
],
"message": "Type Query has no field blocks"
}
]
}

@Data-Nexus
Copy link

blocks is not an entity in the subgraph. If you want to know what block the subgraph has ingested up to, you can run this query:

query {
  _meta{block{number}}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants