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

GQL: Search txs for blocks range #1468

Closed
herr-seppia opened this issue Oct 5, 2022 · 0 comments · Fixed by #1469
Closed

GQL: Search txs for blocks range #1468

herr-seppia opened this issue Oct 5, 2022 · 0 comments · Fixed by #1469
Assignees

Comments

@herr-seppia
Copy link
Member

Describe what you want implemented
Add a blocksrange filter to lookup transaction (similar to the range filter for blocks lookup)
e.g.:

{
  transactions(blocksrange: [0,1000]) {
      blockheight
      blocktimestamp
      gasspent
      json
      txerror
      txid
  }
}

Describe "Why" this is needed
In order to retrieve transaction directly without requesting the blocks

Describe alternatives you've considered
Atm the same result can be achieved querying the blocks for a specific range and then request the transactions for those blocks

{
  blocks(range: [0,1000]) {
    header {
      height
      timestamp
    }
    transactions {
      gasspent
      json
      txerror
      txid
    }
  } 
}

However, this is a waste of bandwidth, because this returns information even for blocks that doesn't have transaction

Additional context
N/A

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

Successfully merging a pull request may close this issue.

1 participant