Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

rpc: Subscription endpoint for block events #202

Closed
fabioberger opened this issue Jul 5, 2019 · 4 comments
Closed

rpc: Subscription endpoint for block events #202

fabioberger opened this issue Jul 5, 2019 · 4 comments
Assignees

Comments

@fabioberger
Copy link
Contributor

@dmvt would like to be able to subscribe to a 'blockNumber' topic which sends the current block number as it is updated.

Perhaps we should add a subscription endpoint that emits meshdb.MiniHeaders without logs. This would include the block number, hash and parentHash of the block and whether it's been added to/removed from the canonical chain.

@fabioberger fabioberger self-assigned this Jul 5, 2019
@fabioberger fabioberger added this to the Beta Release milestone Jul 5, 2019
@fabioberger
Copy link
Contributor Author

Thoughts on adding this @albrow?

@albrow
Copy link
Contributor

albrow commented Jul 8, 2019

@fabioberger this makes a lot of sense to me. I'm just not sure how to balance it with our other priorities. It would help a lot to understand some potential real-world use cases.

@fabioberger
Copy link
Contributor Author

@dmvt what use-case would you want to use this subscription for? Is it mostly a question of monitoring Mesh more closely and to make sure it's working as expected or are there other reasons for wanting to subscribe to blocks?

@albrow
Copy link
Contributor

albrow commented Aug 11, 2020

Closing this because the JSON-RPC API will be removed in v10. If we want to add support for this to the GraphQL API, we should create a new issue. However, it doesn't seem like there is much demand at the moment.

@albrow albrow closed this as completed Aug 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants