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 listen to block events since block_subscribe is deprecated? #34379

Closed
dhruvja opened this issue Dec 9, 2023 · 2 comments
Closed

How to listen to block events since block_subscribe is deprecated? #34379

dhruvja opened this issue Dec 9, 2023 · 2 comments
Labels
community Community contribution

Comments

@dhruvja
Copy link
Contributor

dhruvja commented Dec 9, 2023

Problem

I want a listen to a stream of finalized blocks and the block_subscribe is the one i need. But seems like it is deprecated and i couldnt find any other alternative. There seems to be a workaround by passing a flag to the validator but i was wondering if I could listen to the events without running it since i would be needing it on mainnet.

Please tell me what i can use to listen to block events.

@dhruvja dhruvja added the community Community contribution label Dec 9, 2023
@buffalojoec
Copy link
Contributor

Hey there, this really isn't an issue or bug report for the code, so it doesn't belong here.

To answer your question, the argument - which isn't a workaround it's just an explicit flag to tell the node to use an unstable feature - can be passed to a local validator while you test locally. On your way up to higher clusters (devnet -> mainnet-beta), you'll need to find an RPC provider who offers BlockSubscribe.

@dhruvja
Copy link
Contributor Author

dhruvja commented Dec 9, 2023

Hey there, this really isn't an issue or bug report for the code, so it doesn't belong here.

To answer your question, the argument - which isn't a workaround it's just an explicit flag to tell the node to use an unstable feature - can be passed to a local validator while you test locally. On your way up to higher clusters (devnet -> mainnet-beta), you'll need to find an RPC provider who offers BlockSubscribe.

Ok thanks i will keep a note of that. What is the right place to ask these types of questions?

Thanks for answering the question, i will try to find the rpc provider which offers that.

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

No branches or pull requests

2 participants