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

Create subscription to fuel-core TX pool #1418

Open
ra0x3 opened this issue Oct 17, 2023 · 0 comments
Open

Create subscription to fuel-core TX pool #1418

ra0x3 opened this issue Oct 17, 2023 · 0 comments
Labels
research This issue only requires researching an idea

Comments

@ra0x3
Copy link
Contributor

ra0x3 commented Oct 17, 2023

  • It's been requested in the past that the indexer allow for read-only access to fuel-core's TX pool at some point in time
  • This state/view of the TX pool would be passed to indexer handlers (e.g., same as we do with BlockData)
  • Indexer authors would then be able to have read-only access to these transactions for MEV purposes
  • This would require adding a GraphQL subscription from Fuel Indexer --> Fuel Core so that Fuel core can pass items that have been added (or removed) from the TX pool to the indexer service
  • This would require work with the fuel-core team to understand how best to do this
  • This would also require documentation once this functionality has been added
  • Lots more fun things can be done here :)

Additional notes

  • Since this would be implemented as a GraphQL subscription, we still might need to decide how we're passing the transactions to the handlers
    • For example, will the subscription to Fuel-Core automagically keep track of TX pool items that have been added & removed?
      • Does the indexer have to keep up with any globally mutable state?
  • We might have to create a new handle_events (e.g., handle_tx_events) where the serialized Vec<TxPoolItem> is passed
    • Again, this might work very similarly to what we already have
  • Performance would be important here in a way that it isn't really for regular block indexers
@ra0x3 ra0x3 added the research This issue only requires researching an idea label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
research This issue only requires researching an idea
Projects
None yet
Development

No branches or pull requests

1 participant